Name: David Heinemeier Hansson 2012-06-30 22:20
I'm trying to make a text game in python and I need some advice-- please.
I'm trying to make it where you must choose between 5 escape pods, however space pod #s 1-4 have been sabotaged and if you take them you die:
good_pod = int(5)
bad_pods = int(1,4)
guess = raw_input("[pod #]")
if int(guess) == "bad_pod":
...
However the terminal says "can't convert non-string with explicit base" for the bad_pods. And I tried using int((1),(2),(3),(4)) but I can only use it for two.
TL;DR:
What do I use to include integers 1-4?
I'm trying to make it where you must choose between 5 escape pods, however space pod #s 1-4 have been sabotaged and if you take them you die:
good_pod = int(5)
bad_pods = int(1,4)
guess = raw_input("[pod #]")
if int(guess) == "bad_pod":
...
However the terminal says "can't convert non-string with explicit base" for the bad_pods. And I tried using int((1),(2),(3),(4)) but I can only use it for two.
TL;DR:
What do I use to include integers 1-4?