# File: polish.py # Author: Dr. Gibson # Date: 9/18/2017 # Section: N/A # E-mail: k.gibson@umbc.edu # Description: # This file contains python code that asks the user to guess # the number of nail polish bottles owned by Dr. Gibson. def main(): numBottles = 296 # if a string for an input is particularly long, or if you want to # use it again, you can assign it to a variable and print that out message = "How many bottles of nail polish does Dr. Gibson own? " guessBottles = int(input(message)) # different responses based on their answer if guessBottles == numBottles: print("Yup! Dr. Gibson owns", guessBottles, "bottles of polish.") elif guessBottles < numBottles: print("Nope, she has more nail polish than that.") # could use an elif, but the only remaining option is too high # the elif would look like: # elif guessBottles > numBottles else: print("That's too many bottles! (For now!)") main()