ip
ip
Conditional Statements:
if statement: Execute code if a condition is true
elif statement: Execute code if the initial condition is false and another
condition is true
else statement: Execute code if all conditions are false
===Loops:
for loop: Iterate over a sequence (e.g., list, tuple, string)
while loop: Execute code while a condition is true
===Functions and Modules:
Functions: Reusable blocks of code that take arguments and return values
Modules: Pre-written code that can be imported and used in your program
This summary covers the key concepts in Unit 2 of the Class 11 IP syllabus. These
concepts form the foundation of Python programming and are essential for further
learning.