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

Class10 Python Notes

Uploaded by

ayushabhp1234
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

Class10 Python Notes

Uploaded by

ayushabhp1234
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

Class 10 Python Notes

Python is a simple and powerful programming language used in web development, AI, games, apps, and automation.
These notes cover the basic concepts every beginner should know.

1. Hello World Program


print("Hello World")

2. Variables
name = "Jay"
age = 15
print(name, age)

3. Input from User


name = input("Enter your name: ")
print("Hello", name)

4. Data Types
x = 10 # Integer
y = 3.5 # Float
name = "Python" # String

5. If-Else Statement
marks = 80
if marks >= 40:
print("Pass")
else:
print("Fail")

6. For Loop
for i in range(5):
print(i)

7. While Loop
x = 1
while x <= 5:
print(x)
x += 1

8. Functions
def add(a, b):
return a + b

print(add(2, 3))
9. Lists
fruits = ["apple", "banana", "mango"]
print(fruits[0])

10. Dictionaries
student = {"name":"Jay", "age":15}
print(student["name"])

Tips for Learning Python


Practice daily, make small projects, and focus on understanding logic instead of memorizing code. Use platforms like
[Link], W3Schools, Replit, and Programiz for practice.

Keep practicing consistently. Even small progress every day can help you become a great programmer.

You might also like