Question: When creating a new block of code, the code inside the block is required to be indented. The code below has an indentation problem.

When creating a new block of code, the code inside the block 

is required to be indented. The code below has an indentation problem.

Submit the provided code and click on the "Expand for Detailed Error 

When creating a new block of code, the code inside the block is required to be indented. The code below has an indentation problem. Submit the provided code and click on the "Expand for Detailed Error Message" dropdown to determine where the "Expected an Indented Block" error occurs. Then, make changes to the starter code to resolve the error. 1 def ticket price (s: str)->int: 6 8 9 10 12 14 15 16 17 18 19 20 ***Return the cost of a ticket for a Child, Adult, or Senior. A Child pays $6, an Adult pays $10, and a Senior pays $8. Return -1 if an invalid parameter is provided. >>> ticket_price("Child") 6 >>> ticket price("Senior") 8 >>> ticket price ("Adult") 10 www if s == "Child": return 6 elif a "Adult": return 10. elifs return 81 else: "Senior": return -1

Step by Step Solution

3.48 Rating (158 Votes )

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 Programming Questions!