Print number from 1 to 10: (Use for loop in python)

We will use looping statement to iterate number from 1 to 10 and 0 to 9

# printing numbers from 1 to 10
# range function requires 3 parameters(2 of them are having default values)
for num in range(1,11,1):
# range(start, end, increment/decrement)
print('again printing number in horizontal order 0 to 9')
# if we pass only one parameter in range default starts with a zero
for num in range(10):
    print(num, end=' ')# end with space
# using ‘end =’ attribute to end the result with a space