stidamcassidy stidamcassidy
  • 17-12-2020
  • Computers and Technology
contestada

What is the output?

class car:
model = "
age = 20
myCar = car()
myCar.age= myCar.age + 10
print(myCar.age)

Output: ​

Respuesta :

asarwar
asarwar asarwar
  • 17-12-2020

Answer:

The answer to this question is 30

The explanation is given below

You can also see the attachment section to see the image of result

Explanation:

This question want use to print the value of myCar.age

print(myCar.age)

If we look at line 3, age=20

So the previous value is 20 and we have to add 10 to add as shown

myCar.age= myCar.age + 10

The value will become 30

Answer Link

Otras preguntas

I don't understand the bottom part
Nutrient-rich blood from the intestines flows directly to
The name ________ climate is often used as a synonym for the dry-summer subtropical climate.
carbon dioxide and water is produced when a hydrocarbon combines with ____________________.
Spanish fill in the blanksMay require conjugation
Which skin layer that contains hair follicles, sweat glands, sebaceous glands, and nerve endings?
Who is the least offensive of the suitors? Antinous Eurymachus Amphinomus Leodes none of these
Write the equations of 2 circles that are concentric
what was the main purpose of the Santa Fe Trail
What is (2x+5)-(4x+1)