I seem to have a problem. When I use
first the code
random.choice
it will print out the list instead. here is the code and the outputfirst the code
print('Welcome to the fart monster game') print('----------------------------------') user=input('What is your name ') print("ok",user,"here are the controls: g(grab),l(left),r(right),u(up),d(down)") import random rooms= ['bedroom','dungeon','The Motionless Maze','kitchen','bathroom','office'] random.choice(rooms) start=input('press n to start') if start =='n': print('You are thrown into the',rooms,) elif start != ('n'): print('that is invalid') lifes=10and output
Output:Welcome to the fart monster game
----------------------------------
What is your name d
ok d here are the controls: g(grab),l(left),r(right),u(up),d(down)
press n to startn
You are thrown into the ['bedroom', 'dungeon', 'The Motionless Maze', 'kitchen', 'bathroom', 'office']
And also if you see any problems with the code please let me know