Question: Suppose, we are given a class called Car that has the following 3 attributes named model (string), year (int) and price (float). The function named

Suppose, we are given a class called Car that has the following 3 attributes named model (string), year (int) and price (float). The function named find_car() takes three input parameters as follows: an object my_car of Car class, a string my_model, and an int age. This function returns True if my_car's model matches the given model and my_car is not more than age years old. Otherwise it returns False. Line\#1 def find_car(my_car, my_model, age): Line\#2 if Line\#3 return True Line\#4 return False Choose the best option to fill the gap on Line\# 2. (my_car.model == my_model) or (2022 - my_car.year)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
