i have a class
class car_condition:
def __init__(self,speed):
self.speed= speed
def increase_speed(self):
self.speed=5
kl=self.speed*self.speed if self.speed>= 5 else self.speed*15
return kl
def get_speed(self,increase_speed): #want to call increase_speed module here
k=increase_speed() #should return me 25
txt = f"the speed of the car is {k} mil/hr"
return txt
hence when i initiate class car_condition and call get speed i get an error
speedy_car = car_condition(5)
speedy_car.get_speed()
getting an error get_speed() missing 1 required positional argument: 'increase_speed'
Expected output:
the speed of the car is 25 mil/hr