Question: get_seat_type: (str) -> str The parameter represents a ticket. This function should return 'window', 'aisle', or 'middle' depending on the seat type. If the seat

get_seat_type: (str) -> str The parameter represents a ticket. This function should return 'window', 'aisle', or 'middle' depending on the seat type. If the seat type is invalid, return the empty string. This function should make use of the provided constants in its return statements.

constants:

YEAR = 0
MONTH = 4
DAY = 6
FROM = 8
TO = 11
SEAT = 14
FLYER = 17

WINDOW = 'window'
AISLE = 'aisle'
MIDDLE = 'middle

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