0

Something is wrong, input 23

welcome="how many people are there in your dinner group?\n" welcome=input(welcome ) if welcome >=str(8): print("your have to wait for your table") else: print("Your table is ready")

24th Jun 2020, 10:27 PM
Ajisegiri Sunday
Ajisegiri Sunday - avatar
5 ответов
+ 2
Nothing is wrong ,when strings are compared ,first character in each string is compared and checked if it's smaller of greater than ,if not it moves to comparing second character so in "23" and "8" 2 is not greater than 8
24th Jun 2020, 10:35 PM
Abhay
Abhay - avatar
+ 2
welcome="how many people are there in your dinner group?\n" welcome=int(input(welcome )) if welcome >= 8: print("your have to wait for your table") else: print("Your table is ready")
24th Jun 2020, 10:39 PM
♡Addy♡
♡Addy♡ - avatar
0
What do I do to make it accurate
24th Jun 2020, 10:39 PM
Ajisegiri Sunday
Ajisegiri Sunday - avatar
0
Compare integers welcome=int(input(welcome) If welcome>=8:
24th Jun 2020, 10:40 PM
Abhay
Abhay - avatar
0
Thanks guys ❤️
24th Jun 2020, 10:48 PM
Ajisegiri Sunday
Ajisegiri Sunday - avatar