Skip to content

Instantly share code, notes, and snippets.

@kotoripiyopiyo
Created August 16, 2020 13:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kotoripiyopiyo/cd8ad49ae6e200c328a1e61543dda803 to your computer and use it in GitHub Desktop.
Save kotoripiyopiyo/cd8ad49ae6e200c328a1e61543dda803 to your computer and use it in GitHub Desktop.
TrueとFalseでこんがらがらう
#空文字はFalseだからnot空文字はTrue
name = ''
while not name:
print('名前を入力してください: ')
name = input()
print('OK')
#0はFalseだから0以外はTrue
print('同伴者は何人ですか?')
num_of_guests = int(input())
if num_of_guests:
print('同伴者用の場所があるか確認してください。')
print('受け付けました')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment