00:01
In this question, you can create a simple python program to count the number of the guests in a restaurant as described in this question.
00:07
So here is a sample program in a python language.
00:10
First of all, you have to set the maximum capacity of the restaurant.
00:14
So the code for this is max capacity is equal to 20.
00:18
Then initialize the current numbers of the guests.
00:20
So current guest is equal to zero.
00:22
Then using while loop.
00:23
So while enter guest less than max max capacity, then ask the guest to enter their name.
00:30
So guest name is equal to input, enter your name or q to quit.
00:34
Then check if the user wants to quit.
00:37
So if guest name lower is equal to is equal to q break...