Page 1 of 1

Design a class to contain a single Passenger. Add dunders to support: Initialization, printing, searching, sorting Las

Posted: Thu Jul 14, 2022 2:17 pm
by answerhappygod
Design a class to contain a single Passenger. Add dundersto support: Initialization, printing, searching,sorting
Last Name, First Name, Row, Seat Number
chow,phu,26,Dryan,linda,15,Ghamilton,ted,34,E
Design a Jet class that contains multiple passengers fromquestion #1. Select the container of your choice for your Jetto put the passengers. Add dunders to support: bracketaccess, initialization, iteration, length, .
Make a Jet class instance. Write function to Read thePassenger.csv file. For each line in the file:
* Convert each line of data into a Passenger
* Put the Passenger in the Jet using the jet's classinterface
Write a Comprehension that uses the Jet's iterator to accesseach Passenger in the Jet.