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.