3
answers
0
watching
261
views
5 Feb 2018

Part (e) [3 MARKS] Complete method add in class Flight. def add(self, passenger): (Flight, str) -> bool If there are still seats available on this flight, add passenger to the passenger list. Return True iff passenger is added to this flight. >>> a = Airplane('Cessna 150E', '9378', 1, 824.8) >>> f = Flight(a) >>> f.add('Myrto' True >>> f.add('Jen') False

For unlimited access to Homework Help, a Homework+ subscription is required.

Unlock all answers

Get 1 free homework help answer.
Already have an account? Log in
Already have an account? Log in
Patrina Schowalter
Patrina SchowalterLv2
8 Feb 2018
Already have an account? Log in

Related questions

Related Documents

Weekly leaderboard

Start filling in the gaps now
Log in