# File: dogs.py # Author: Dr. Gibson # Date: 2/13/2017 # Section: N/A # E-mail: k.gibson@umbc.edu # Description: # This file contains python code that asks the user if # a dog is a good dog, and responds to their answer. def main(): # get the user's answer and store it in the variable "goodDog" goodDog = input("Is the dog a good dog? ") # only the answer "yes" is accepted as correct if goodDog == "yes": print("You're right! Of course it's a good dog!") # any other answers result in this response # (this includes response like "YES!!" or "always") else: print("What do you mean??? ALL dogs are good dogs, always!") main()