mardi 23 février 2021

why is the random variable I decleared not changing even though I have created an object for it using randint function

import random
ran = random.randint(000,999)

n = int(input("Enter Any Number = "))

list=[]

for i in range(n):
    list.append(ran)
    print(i,"----",list)

print(list)



Aucun commentaire:

Enregistrer un commentaire