Advertisement
asweigart

if else example

Jun 15th, 2019
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.17 KB | None | 0 0
  1. print('Enter your age:')
  2. age = input()
  3. age = int(age)
  4. if age > 5:
  5.     print('You are older than 5.')
  6. else:
  7.     print('You are not older than 5.')
  8.  
  9. print('Goodbye')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement