Advertisement
Guest User

Python code

a guest
Apr 30th, 2016
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.28 KB | None | 0 0
  1. cat = eval(input("Please enter an equation for cat: "))
  2. yell = int(input("Please enter an integer for yell: "))
  3.  
  4.  
  5. def meow():
  6.     if int(cat) == yell:
  7.         print("The cat meowed")
  8.     else:
  9.         print("The cat was close to meowing by", cat - yell, "but didn't.")
  10.  
  11. meow()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement