Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using onjects from car dealership class. Write the code to used sqlalchemy to store and retrieve data from the internal sql lite database. https://docs.sqlalchemy.org/en/latest/orm/tutorial.html Also

Using onjects from car dealership class. Write the code to used sqlalchemy to store and retrieve data from the internal sql lite database.
https://docs.sqlalchemy.org/en/latest/orm/tutorial.html
Also attached is my car dealership class. Please attach formatted code and screenshots.
image text in transcribed
image text in transcribed
class CarDealership: def __init__(self, name, payment): self.payment=payment self.name=name def method3 (self): print(f 'Dealer name : {self.name}') def method 4 (self): print(f 'Dealer payment : {self.payment}'). class CarDealeri (Car Dealership): definit__(self, name, payment): super(). _init__(name, payment) def methodl (self): print('I am in method l of subclass 1') def method 2 (self): print('I am in method 2 of subclass 1') class CarDealer2 (Car Dealership): def __init__(self, name, payment): super(). __init__(name, payment) def methodl (self): print('I am in method 1 of subclass 2') def method2 (self): print('I am in method 2 of subclass 2') class CarDealer3(Car Dealership): definit__(self, name, payment): super(). init__(name, payment) def methodl (self): print('I am in method i of subclass 3') dat haaALFI. def methodl (self): print('I am in method 1 of subclass 3') def method2 (self): print('I am in method 2 of subclass 3') x=Car Dealeri('Jamal',10000) y=Car Dealer2('Gip', 8000) z=CarDealer3('Savannah', 25000) x.methodl() x.method 2 () x.method3 ( ) x.method4 ( y.methodl() y.method2 () y.method3 () y.method 4 () z.methodi() 2.method2( ) 2.method3 () z.method 4 ()

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions