Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. print('How many cats do you have?')
  2. numCats = input()
  3. try:
  4.     if int(numCats) >= 4:
  5.         print('That is a lot of cats.')
  6.     if int(numcats) < 0:
  7.         print('You entered an invalid value.')
  8.     else:
  9.         print('This is not many cats.')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement