Python loops can be used for many different purposes, such as creating animations, generating random numbers and repeating blocks of code.
This loop will iterate through the list of numbers and print out the number that is less than 10:
for x in range(1, 11):
print(x) if x< 10:
print("The number is less than 10")
else: print("The number is greater than or equal to 10")
While loops are used in Python to execute a block of statements repeatedly until a condition is met. When the condition in the programme becomes false, the line immediately after the loop is performed.
41. Bhusnar Sajan
it is not learn english
MOHAN RAJ . J
wonderful the section
It's just awesome. we can able to learn as well as we can test by ourself at the end of one section!!!