HW2_Q4

 avatar
user_7676782
python
2 years ago
209 B
3
Indexable
Never
import random

randomNum = open("numbers.txt", "w")
i = 0

num = int(input("enter number"))
while i < num:
    randomNum.write(str(random.randint(1, 500)))
    randomNum.write("\n")
    i+=1
randomNu