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
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
3
answers
0
watching
261
views
For unlimited access to Homework Help, a Homework+ subscription is required.
22 Jun 2023
Patrina SchowalterLv2
8 Feb 2018
Already have an account? Log in