i'm trying to get the program to randomly print a item from a list, then the program to ask the user to input some information where there is true/false conditions, and then return the user to the start where they can select a new 'track'
the problem im having is that, only 'listone' is being selected and its not a random list selection thanks to all that help.
import random
questlist = ['questone', 'questtwo', 'questthree']
random.choice(questlist)
def start():
print('Hi, welcome to the race track')
pick = input('pick a track')
displaytrack()
def displaytrack():
tracks = ('track 1', 'track 2', 'track 3')
print(tracks)
if 'questone':
ans = input('how old are u')
if ans == 3:
print('Correct')
print('Thanks for using')
start()
else:
print('Incorrect')
start()
if 'questtwo':
ans = input('How nice are u')
if ans == 'very':
print('Correcterino')
print('Thanks for using')
start()
else:
print('Wrongerino')
start()
if 'questthree':
ans = input('How tall are u')
if ans == 'pretty':
print('sixfoot')
print('Thanks for using')
start()
else:
print('no feet')
start()