Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

# t 9 5 . py # Author: Youcef Derbal import random MOdElS = [ 'Corolla ' , ' F - Series' , 'Golf' ,

#
t95.py
# Author: Youcef Derbal
import random
MOdElS=[ 'Corolla ','F-Series' , 'Golf' , 'Civic' , 'Passat ', 'Beetle' , 'Escort
YEARS =['2012','2013','2014','2015','2016','2017','2018']
class Vehicle:
def (self,*args,**kwrags):
self.model =args[]
self.year =args[1]
self.price = float (args[2])
def info(self):
print(self.model, ': ', self.year, ': ', self.price)
n=100
db=dict()
for i in range (n) :
j= random. randint (,len(MODELS)-1)
k= random. rand(,len(YEARS)-1)
v= Vehicle (MODELS j, YEARS [k],30+30** random. random ()
image text in transcribed

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_step_2

Step: 3

blur-text-image_step3

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

Question

Define Scientific Management

Answered: 1 week ago

Question

Explain budgetary Control

Answered: 1 week ago

Question

Solve the integral:

Answered: 1 week ago

Question

What is meant by Non-programmed decision?

Answered: 1 week ago