Advertisement
Guest User

Truthy and Falsey Values

a guest
Sep 26th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. name = ''
  2. while not name != '':
  3.     print('enter name')
  4.     name = input()
  5.     print('how many guests?')
  6.     numOfGuests = int((input())
  7.     if numOfGuests != 0:
  8.         print('that ok')
  9.     else:
  10.         print('enough room?)
  11.    print('done')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement