Professional Documents
Culture Documents
Presentation 2
Presentation 2
K DAMITH GAYANTHA
Iteration/Loops
❑ In Python, we generally have two
loops/repetitive statements:
•while loop
•for loop
while loop
Example 02
Example 03
➢ When you run a program on the terminal and press Ctrl+c the default behavior is quit
the program.
❑ Whole not
Q1 .Write the python program to find the factorial of
a number ?
Q2.