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