Basic Python Notes (Apna College Style)
Pen Guide: Blue = Headings | Black = Notes/Code | Red = Important | Yellow = Keywords
Chapter 1: Introduction
Python is easy to learn and useful for sports analytics, automation, and data analysis.
Chapter 2: First Program
print("Hello World")
Output: Hello World
Chapter 3: Variables
name = "Virat"
runs = 100
Chapter 4: Data Types
String = "Dhoni"
Integer = 25
Float = 52.4
Boolean = True
Chapter 5: Input
name = input("Enter name: ")
Chapter 6: If Else
if score >= 50:
print("Good innings")
else:
print("Needs improvement")
Chapter 7: Loops
for i in range(5):
print(i)
Chapter 8: Lists
players = ["Virat", "Rohit", "Dhoni"]
Chapter 9: Dictionary
player = {"name":"Virat", "runs":13000}
Chapter 10: Functions
def greet():
print("Hello")