print "\t\t\t ----------------" print "\t\t\t Off to the Doctor's" print "\t\t\tUSE NUMBERS!" print "\t\t\t ----------------" print "You're feeling a little under the weather and aren't sure what's wrong." print "Your overprotective mom is sure you're dying and mandates a trip to the doctor's office." print "While there, you fill out a questionnaire for the medical assistant, because apparently the doctor is too busy. It goes as follows." print "Do you feel naseous?" print "1. Yes" print "2. No" naseous = raw_input() if naseous == "1" or naseous == "Yes": print "That's too bad. There could be many reasons for this, let's try to narrow this down" print "Do you have a fever?" print "1. Yes" print "2. No" fever1 = raw_input() if fever1 == "2" or fever1 == "No": print "You're pregnant! Possibly. Congratulations! But take a test in case, because I'm wrong most of the time. It's either that or food poisoning." elif fever1 == "1" or fever1 == "Yes": print "Fever and nausea..that's a rough combo. I recommend taking some anti-acids to ease the pain. But I want to keep looking for a further problem." print "Do you have muscle ache?" print "1. Yes" print "2. No" ache = raw_input() if ache == "2" or ache == "No": print"You're just a little too warm. I recommend staying out of the sun to avoid skin cancer and bad tan lines " elif ache == "1" or ache == "Yes": print "Oh I'm sorry. Try plenty of water and some ibuprofen. It should help" print "Do you feel light headed or faint?" print "1. Yes" print "2. No" faint = raw_input() if faint == "1" or faint == "Yes": print "You have the flu. There's not much to do at this point except rest and fluids. Because the flu is a virus, we can't treat this with antibiotics. Just a little TLC" elif faint == "2" or faint == "No": print "You could have the early signs of a flu, but it also sounds like you're faking. I'd take a day off schoool just to be safe." elif naseous == "2" or naseous == "No": print "Good, nausea's the worst." print "Do you have a fever?" print "1. Yes" print "2. No" fever = raw_input() if fever == "2" or fever == "No": print "You're faking, go home!" elif fever == "1" or fever == "Yes": print "Okay I'll make sure to get that temperature later." print "I just have a couple more questions for you." print "Are you having trouble breathing?" print "1. Yes" print "2. No" breathing = raw_input() if breathing == "2" or breathing == "No": print "I'm not sure how to help you. Try the Emergency Room or the Internet" elif breathing == "1" or breathing =="Yes": print "I think I know what the problem is but I'm not sure" print "Are you coughing a lot, and is it clear?" print "1. Yes" print "2. No" cough = raw_input() if cough == "2" or cough == "No": print "Because you have no nausea or cough, and only have a fever and trouble breathing, I'm going to refer you to a pulmonary specialist." print "I don't believe there is any immediate threat to your health or safety." print "Let me know if you need anything else and I hope everything goes better for you." elif cough == "1" or cough == "Yes": print "Dayquil and tea with honey should help with that" print "Just one more question for you." print "Are you having chills or shakes?" print "1. Yes" print "2. No" chills = raw_input() if chills == "1" or chills == "Yes": print "I know what your problem is." print "I'm sorry to say you have pnemonia." print "Because you're able to move and aren't stuck in bed, I believe this is walking pnemonia." print "I am going to prescribe an antibiotic and I want you to stay resting. It should take two weeks for the cough to go away" elif chills == "2" or chills == "No": print "I don't know what's wrong so I'm going to refer you to my collegue." print "If you're uncomfortable waiting feel free to go to the ER or Urgent Care."
Run
Reset
Share
Import
Link
Embed
Language▼
English
中文
Python Fiddle
Python Cloud IDE
Follow @python_fiddle
Browser Version Not Supported
Due to Python Fiddle's reliance on advanced JavaScript techniques, older browsers might have problems running it correctly. Please download the latest version of your favourite browser.
Chrome 10+
Firefox 4+
Safari 5+
IE 10+
Let me try anyway!
url:
Go
Python Snippet
Stackoverflow Question