Posts

Showing posts from May, 2026

Simple python programs..

 Here are some simple Python programs for beginners: 1. Print Hello World print ( "Hello World" ) 2. Add Two Numbers a = int ( input ( "Enter first number: " )) b = int ( input ( "Enter second number: " )) print ( "Sum =" , a + b ) 3. Odd or Even num = int ( input ( "Enter a number: " )) if num % 2 == 0 : print ( "Even" ) else : print ( "Odd" ) 4. Find Largest Number a = int ( input ( "Enter first number: " )) b = int ( input ( "Enter second number: " )) if a > b : print ( a , "is larger" ) else : print ( b , "is larger" ) 5. Print Numbers 1 to 10 for i in range ( 1 , 11 ): print ( i ) 6. Multiplication Table num = int ( input ( "Enter a number: " )) for i in range ( 1 , 11 ): print ( num , "x" , i , "=" , num * i ) 7. Count Vowels in a Name name = input ( "Enter y...

Codes

Image
--------------------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------------------------------

🐍 30-Day Python Course Notes (Beginner to Intermediate)

  🐍 30-Day Python Course Notes (Beginner to Intermediate) 📅 WEEK 1: Python Basics Day 1: Introduction to Python What is Python? Applications (Web, AI, Automation, Data Science) Install Python & IDE (VS Code / IDLE) First Program: print("Hello World") Day 2: Variables & Data Types Variables Data types: int, float, str, bool x = 10 name = "Rohith" Day 3: Input & Output name = input("Enter your name: ") print("Hello", name) Day 4: Operators Arithmetic (+, -, *, /) Comparison (>, <, ==) Logical (and, or, not) Day 5: Conditional Statements age = 18 if age >= 18: print("Adult") else: print("Minor") Day 6: Loops (for, while) for i in range(5): print(i) Day 7: Practice + Mini Project Number guessing game 📅 WEEK 2: Data Structures Day 8: Lists nums = [1, 2, 3] nums.append(4) Day 9: Tuples t = (1, 2, 3) Day 10: Sets s = {1, 2, 3} Day 11: Dictionaries student = {"name": "Rohith", ...