Chemistry, asked by akshitchaudhary852, 11 months ago

write a python program to generate random no.​

Answers

Answered by TheVang51
2

{\bold {\green {\boxed {PYTHON}}}}

#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