Question: In Python: What's Allowed? We've finally learned a substantial bit of programming! On this assignment, don't import anything except math, other than that you should
In Python:









What's Allowed? We've finally learned a substantial bit of programming! On this assignment, don't import anything except math, other than that you should be able to use any built-ins that you want, the project focuses on class structure, so there's not likely to be things that would make for any shortcuts. Procedure Complete the class definitions as described, you can test your code with the included testing file: Invoke it as with prior assignments: python3 tester6p.py yourcode.py You can also test individual parts of the code, but note that you either want to type a class name or the name of a batch of test cases. You can either use the class name to test init str ,and eq (any "basic functionality' tests), or the other method names from Train, City, and Journey classes python tester6p.py yourcode.py Train python tester6p.py yourcode.py unload passengers python tester6p.py yourcode.py Train City Journey add destination In addition to method and class names, these three names can be used to test exception behavior of relevant methods/classes: unload passengers exception, load passengers exception, and journey type error. You can also run your code in interactive mode python3 i yourcode.py
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
