Question: Using python Write a program to pre-sell a limited number of cinema tickets. Each buyer can buy as many as 4 tickets. No more than

Using python Write a program to pre-sell a limited number of cinema tickets. Each buyer can buy as many as 4 tickets. No more than 20tickets can be sold. Implement a program called TicketSellerthat prompts the user for the desired number of tickets and then displays the number of remaining tickets. Repeat until all tickets have been sold, and then display the total number of buyers.

Loop

There are currently xxx tickets remaining.

How many tickets would you like to purchase?

(make sure you print an error message if they try to buy more than 4)

The total number of buyers was xxx.

1) sceenshot code and comment code.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!