Created
August 16, 2020 13:14
-
-
Save kotoripiyopiyo/cd8ad49ae6e200c328a1e61543dda803 to your computer and use it in GitHub Desktop.
TrueとFalseでこんがらがらう
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#空文字は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