I have to random choose names from a list in python using random.randint.
I have done it so far. but i am unable to figure out how to print them without repetition. some of the name repeat them after 10 to 15 names.
please help me out. I am not allowed to use any high functions. I should do it with simple functions. here is my program.
import random
names = [about 150 names]
print([names[random.randint(0, len(names)-1)] for i in range(user_input)])