def game(): answer=input('Would you like to play a game?(y/n)') if answer.lower() =='y': print('Welcome to the Adventure') start = True inventory = [] else: print( 'Ok Maybe Some other time' ) game()