Question
3 Page 1.PNG />3 Page 2.PNG />3 Page 2.PNG />3 Page 3.PNG />3 Page 4.PNG />3 Page 5.PNG />I have an assignment I am working
3 Page 1.PNG" />3 Page 2.PNG" />3 Page 2.PNG" />3 Page 3.PNG" />3 Page 4.PNG" />3 Page 5.PNG" />I have an assignment I am working on for Python 3 Programming class that I am almost to the finish line but need a little help with suggestions or tips to clean the code up and shorten the length of code. Here are the assignment instructions and I have attached the pics of my Komodo editor showing the code I have so far. It will output what we're looking for but just need some suggestions on how to shorten it but still make it function correctly.
- Code an automobile class that will be used by a dealership as a vehicle inventory program.The following attributes should be present in your automobile class:
- private string make
- private string model
- private string color
- private int year
- private int mileage
Your program should have appropriate methods such as:
- constructor
- add a new vehicle
- remove a vehicle
- update vehicle attributes
At the end of your program, it should allow the user to output all vehicle inventory to a text file.
- Your final program submission materials must include your source code and screenshots of the application executing the application and the results.
\f\f\f\freturn tasks.get(choice, default)() while True: Inventory() t5=input("\ Select Task =") Select_Task(ts) t5=print(' _________________________ "J
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started