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

what happens during deforestation? a. trees are replanted. b. trees disappear. c. jungles increase. d. overfishing occurs.
the boron atom of bbr3 has
when the eiffel`s tower was built?
which is a valid distinction between the catholic church and the eastern orthodox church? a. only the catholic church uses the old and new testaments; the easte
the quantity x - 9 multiplied by -3 is equal to 51.
Someone please help me with this!
In what order does the plot of a fictional story typically progress
the length of a swimming pool is 22 ft. the width is 40 ft. if the volume of the pool is 2,500 ft, which equation would you use to find the depth of the pool?
if an element has an atomic mass of 127 and an atomic number of 53, how many neutrons does it have? 74 127 53 75
Given two sets, X={things that are impossible or untrue} and Y={mathematical statements}, which of the following are in ( X and Y) 3^2=9 7+5=99 A cat lifts a g