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

Why do you think assignments ( Nurturer, Pilot, Instructor) are capitalized in the novel
(7) The carbon-oxygen cycle illustrates how A) Herbivores give off oxygen B) Producers give off oxygen C) All organisms give off carbon dioxide D) Both B and C
Find the area. please
please help me out... -5 ( 6x + 2 ) = -30x - 10 is the equation solvable or does it not have a solution?
Simplify the following radical sqrt 300 x^15
there are 60 members in a club. 36 percent of them are boys what is the percentage of the boys?
Which number represents a basic pH, 4 or 9? _______ Numerical Answers Expected! Answer for Blank 1:
Your company is requesting your attendance at an important conference. there will be many lectures and group workshops about current trends and practices at thi
"Temptation is the greed" Help me to write short speech in this topic.
Buying items in larger volume is also known as ____. bulk purchasing volumizing group shopping volume discounting