count to ten for of loop code example Example: how to count number from 1 to 10 in python for i in range(11): print(i)