Note that there are some explanatory texts on larger screens.

plurals
  1. POThis is probably a trivial overlook, just starting out with python
    primarykey
    data
    text
    <p>I made a short text adventure for my human phys class about the liver. </p> <p>link: <a href="http://pastebin.com/QYkn5VuU" rel="nofollow">http://pastebin.com/QYkn5VuU</a></p> <pre><code>#SUPER LIVER ADVENTURE 12! from sys import exit from random import randint quips = ["Welcome!", "have a wonderful day", "Livers are cool!", "this text was chosen at random", "Writen in python", "woo, splash text!", "Notch loves ez!", "Almost dragon free!"] print quips [randint (0, len(quips) -1)] def first_thing () : print "You are a liver, congratulations! You should do some liver stuff now." print "Here comes some blood, what should you do?" filterblood = raw_input ("&gt;") if filterblood == "filter" or "filter blood" or "filter the blood": return 'second_thing' elif filterblood == "who cares": print "I care, be more considorate!" return "first_thing" else: print "Sorry, no (Hint, it is your main purpose!)" return "first_thing" def second_thing () : print "You are now filtering the blood, good for you!" print "oh no! There is too much aldosterone! what would that do?" fluidz = raw_input ("&gt;") if fluidz == "fluid retension" or "Keeping fluids": return 'third_thing' else: print "nope! (hint, what does aldosterone do?)" return "second_thing" def third_thing () : print "Oh no!, that's bad!" print "What should you do about that aldosterone?" metabolize = raw_input ("&gt;") if metabolize == "metabolize" : return 'fourth_thing' else: print "BRZZZZ, wrong!" return "third_thing" def fourth_thing () : print "super duper!" print "the aldosterone has been taken care of, no problems at the current moment" print "..." print "..." print "..." print "After a couple of months a problem arises, you are inflamed, what could this be?" hepatitis = raw_input ("&gt;") if hepatitis == "hepatitis": return 'fifth_thing' else: return "fourth_thing" def fifth_thing () : print "OH NO! Hepatitis!" print "What could have caused this?" idunno_somthing = raw_input ("&gt;") if idunno_somthing == "infection" or "an infection" : print "neat, thats no good." print "thank you for coming" exit (0) elif idunno_somthing == "sex" or "drugs" or "rock n roll": print "very funny, what specificly caused it?" return "fifth_thing" else: return "fifth_thing" ROOMS = { 'first_thing': first_thing, 'second_thing': second_thing, 'third_thing': third_thing, 'fourth_thing': fourth_thing, 'fifth_thing': fifth_thing } def runner(map, start): next = start while True: room = map[next] print "\n--------" next = room() runner(ROOMS, 'first_thing') #if you steal my stuff, credit me. </code></pre> <p>I had to type in hepatitis twice (lines 66 and 67)and none of the elif's worked. </p> <p>edit: What am I missing? </p> <p>This is probably a really stupid question, I'm just starting out. We were all beginners at once. </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload