logo

Crowdly

Browser

Add to Chrome

Mis on tulemus? class Car:      def __init__(self, name, mileage): ...

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

Mis on tulemus?

class Car: 

    def __init__(self, name, mileage):

        self.name = name

        self.mileage = mileage

car1 = Car("Auto", 10000)

car2 = car1

car1.name = "Auto1"

car2.mileage += 500

print(f"Car {car1.name} with {car1.mileage}")

print(f"Car {car2.name} with {car2.mileage}")
0%
0%
More questions like this

Want instant access to all verified answers on moodle.taltech.ee?

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

Browser

Add to Chrome