logo

Crowdly

Browser

Add to Chrome

Який результат буде виведено в терміналі після виконання наступної програми? c...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Який результат буде виведено в терміналі після виконання наступної програми?

class Car:

autopilot = False

def __init__(self, model, spead):

self.model = model

self.spead = spead

self.autopilot = Car.autopilot

def is_autopilot(self):

if self.autopilot == True:

print( "Yep! There is an autopilot!")

else:

print("Nope! It's dummy(")

class Tesla:

def __init__(self):

self.autopilot = True

class CleaverCar(Tesla,Car):

def __init__(self, model, spead):

super().__init__()

self.model = model

self.spead = spead

a = CleaverCar("Some_ordinary_car", "Jeez! It's frighteningly fast!")

a.is_autopilot()

More questions like this

Want instant access to all verified answers on learn.ztu.edu.ua?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome