71.6k views
0 votes
Write Coral code for the following

If userTickets is less than 7, assign awardPoints with 10. Else, assign awardPoints with userTickets.

Ex: If userTickets is 3, then output is:

User Meizilp
by
9.3k points

1 Answer

5 votes

Answer:

if userTickets < 7:

awardPoints = 10

else:

awardPoints = userTickets

User Gareth Jeanne
by
8.1k points