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

Math help!!! Explain when is a rational expression restricted.
what is the body of law which governs all aspects of a muslim's life
Emma is 9 1/4 years old . how many months is Emma please answer
when two faces of a three dimensional figure share a side they form this
recomended ways in which the business can promote social and cultural rights cultural rights in the workplace
How did congress appease the antifederalists
Though freed slaves seldom integrated with local populations once returned to their home countries and towns, humanitarian efforts returned freed slaves to whi
In a rare southern lizard species, individuals with (aa) genotype do not live to a reproductive age. The gene pool of the lizard population is affected because
Write your question here :What is a freedom of expression??
Which word in the sentence is an indefinite pronoun? Both watched themselves on my video of their last game of the season. A. Both B. themselves C. my D. their