Class_11_Python_Revision_Notes
Class_11_Python_Revision_Notes
1. Introduction to Python
2. Python Basics
- Operators:
- Arithmetic: +, -, *, /, %, //, **
4. Flow of Control
- Conditional Statements:
if condition:
# code
elif condition:
# code
else:
# code
- Loops:
- while loop:
while condition:
# code
- for loop:
# code
5. Strings
- Immutable
6. Lists
- Example: t = (1, 2, 3)
- Access: d["name"]
8. Functions
def function_name(parameters):
# code
return value
- Write: f.write("Hello")
- Close: f.close()