Advertisement
xgeovanni

The cat game

Feb 23rd, 2013
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.34 KB | None | 0 0
  1. def main():
  2.     while True:
  3.         command = input("You are a cat. ").lower()
  4.  
  5.         if command == "yes I am":
  6.             print("You are indeed")
  7.  
  8.         elif command == "i am gilbert":
  9.             print("You Win!")
  10.             break
  11.  
  12.         print()
  13.  
  14.     input("\nPress enter to exit")
  15.  
  16. if __name__ == "__main__":
  17.     main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement