Python unt 2
Python unt 2
The syllabus for Unit 2 of Python programming includes four main topics:
The video will cover how to use control statements like *pass*, *continue*, and *break*.
Conditional Statements
Decision Making : Conditional statements allow for decision-making during program
execution based on conditions being true or false.
Types of conditional statements include:
Loops
Loops - are used to execute a block of code multiple times:
Types of loops -
*While Loop* : Executes as long as a condition is true.
*For Loop* : Used for iterating over a sequence of objects.
*Nested Loops* :
A loop inside another loop, allowing for complex iterations.
Will work with any loop like while as well as for loop
for loop used to control the number of times a particular set of statements
executed and another outer loop could be used to control the number of times
the whole loop will be repeated.
Loops are should be indentified.