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.
Learner's Ratings
4.4
Overall Rating
58%
26%
11%
5%
0%
Reviews
R
Ritu Patil
4
yes this very helpfull me i am learn more so thank you
S
Sathyan Thiru
4
why is the installing database in python shows x and that video cannot be shown in tamil language python but the english language python can .
P
Prabhat Yadav
5
Superb and amazing 😍🤩 enjoyable experience.
N
Naveen Raj K
4
in dictionary session only there is half vedio available
S
S.Gokula kannan
5
Very good course in learn vern
S
Sathishkumar Balasubramaniyam
5
very good teaching
S
Subash Chandru
5
excellent teaching
S
Sneka Sneka
5
Good
3
31_NITHIYANANTHAM. P
5
Its super
4
41. Bhusnar Sajan
5
it is not learn english
Show More
Recommended Courses
The Complete JavaScript Course - Beginner to Advance
Share a personalized message with your friends.