0% found this document useful (0 votes)
1 views2 pages

Python Notes Handwritten Style

Uploaded by

amnetanishk
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1 views2 pages

Python Notes Handwritten Style

Uploaded by

amnetanishk
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

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")

You might also like