Question: 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

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.1def ticket_price(s: str)-> int:2"""Return the cost of a ticket for a Child, Adult, or Senior.3 A Child pays $6, an Adult pays $10, and a Senior pays $8.4 Return -1 if an invalid parameter is provided.56>>> ticket_price("Child")768>>> ticket_price("Senior")9810>>> ticket_price("Adult")111012"""13 if s == "Child":14 return 615 elif s == "Adult":16 return 1017 elif s == "Senior":18 return 819 else:20 return -1

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!