37.9k views
1 vote
Can you solve this challenging activity?

Can you solve this challenging activity?-example-1
User Akbar Khan
by
4.9k points

1 Answer

1 vote

Answer: See below.

Step-by-step explanation:

user_tickets = int(input("How many tickets do you want to buy? "))

if user_tickets < 5:

num_tickets = 1

else:

num_tickets = user_tickets

print("You have {} tickets".format(num_tickets))

User Kare Nuorteva
by
5.0k points