Learn Dedaandsons

Story: how to use a for loop to print the numbers from 1 to 10 in Python ; 06-09-2023;

how to use a for loop to print the numbers from 1 to 10 in Python.

for mak in range(1, 11):

print(mak)

explanation:

In the above program, we are printing a series of numbers from 1 to 10. We have defined a for loop with the variable name mak and a range of 1 to 11. The sequence will run from 1 to 10, and then the loop will exit. Each time the loop runs, the print() statement will print out the current number in the sequence.

What we'll learn today :

how to print number1 to 10 series in python with the use of for loop for beginners. | learn python for free with examples for beginners.

Note:

This tutorial may have been created with the assistance of artificial intelligence (AI) tools. Some of the research data used to write this tutorial may have been derived by AI tools, and then put together by humans. Additionally, AI tools may have been used to write some or all of the tutorial.

More?:

Move Back to Top

Like, share, follow us.