import random
def FillNumbers(int ):
print(""Printing random numbers between 1 to 10"")
print(random.randrange(1,10))
def Main():
for K in range(1,10):
FillNumbers(K)
Main()
Step-by-step explanation:
We import random library so that we use or call random numbers with specific range.
In FILLNumbers function we just print random number by call random.randage(1,10). Random.randage is inbuilt functions which is available in random library.
Since in python any function can be defined as main function not like other software like c, c++. To acheive we use def as main() to call the FILLNumbers(k). FILLNumbers(K) been called 10 times for that for loop been used with range(1,10)
At last Main() been called for execute first function to get the output.