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

How many moles are present in a 24.5 gram sample of K2Cr2O7?
Which African-American leader believed that blacks should demand full and immediate equality?
Why do some fear the Bill of Rights might endanger rights more that protect them? How did the bill of rights deal with this point?
What is the acceleration of all objects due to gravity? What does this mean?
Kristine bought a vase that cost $5.99 and roses that cost $1.25 each.the total cost was $20.99.write and solve the equation to find how many roses Kristine bou
Which expression is equivalent to (6 + 2i) - (4 + 3i)?
If Julie needs 3 1/4 cups of oatmeal, how many 1/4 cups oatmeal will shw use?
The diameter of a quarter is about 2.4 centimeters. a. What is the circumference of a quarter ? (Use 3.14 for pie) b. What is the ratio of the radius of the qua
Capital resources include?
List three significant differences between meiosis I and meiosis II