# File: tuThDinos.py # Author: Dr. Gibson # Date: 9/22/2016 # Section: N/A # E-mail: k.gibson@umbc.edu # Description: # This file contains python code that asks the user a few # questions about a dinosaur, predicts whether it is # dangerous, and then prints out a response to the user. def main(): print("Please enter 'yes' or 'no' to these question (case matters)") # get the information on the dino from the user isHerb = input("Does your dino exclusively eat plants? ") realBig = input("Is your dino really really big? ") isSlow = input("Does your dino move slow? ") isSharp = input("Does your dino have sharp things protruding from its body? ") # print out the info about dangerous dinos (and what will happen) if realBig == "yes": print("Ya gonna die") if isSharp == "yes": print("Prepare to be stabbed and/or chewed and/or impaled") # print out this only if the dino is safe if isHerb == "yes" and realBig == "no" and isSlow == "yes" and isSharp == "no": print("You're safe ... for now (muahahahahahahaha haha)") else: print("Welcome to Jurassic Park, ya gonna get murdered") main()