write a python program to generate random no.
Answers
Answered by
2
#To generate a random no.
import random
a=[]
n=int(input("Enter number of elements:"))
for j in range(n):
a.append(random.rándint(1,20))
print('Randomised list is: ',a)
Similar questions