I'm trying to make a random list thing in python. Every time you run the code, random words from a list would appear in order. What I tried to do was this:
import random numSelect = 0 list = ['thing1', 'thing2', 'thing3', 'thing4', 'thing5'] for i in range(random.randint(1, 3)): rThing = random.choice(list) numSelect = numSelect + 1 print(numSelect, '-' , rThing) The objective is that the user is asked to choose something from the list that would display. Here is an example of the output that I want:
1 - thing4 2 - thing2 Which one do you choose?: (User would type '2') *output of thing2*