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")
5 Answers
+ 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
+ 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")
0
What do I do to make it accurate
0
Compare integers
welcome=int(input(welcome)
If welcome>=8:
0
Thanks guys â€ïž