Python While
Share: Facebook |
Twitter |
Whatsapp |
Linkedin Visits: 518
Python While
#ScriptsKart
# Python while statement allows you to execute a code
# block repeatedly as long as a condition is True
# syntax of a while
# while condition:
# body
max = 10
counter = 0
while counter <= max:
print(counter)
counter += 1
#ScriptsKart