Professional Documents
Culture Documents
ROLL NO : 39
PYTHON : EXPERIMENT NO : 3
Aim: Write a Program in Python using Loop.
Software Used: Python 3.10, VS Code
Theory:
• Loops: programming languages provide various control
structures that allow for more complicated execution
paths. A loop statement allows us to execute a statement
or group of statements Multiple times.
• While Loops: A while loop statement in python
programming language repeatedly executes a target
statement as long as a given condition is true.
Syntax:
while expression:
statement(s)
OUTPUT :
PROGRAM (2):
OUTPUT :
PROGRAM (3):
OUTPUT :