What is the output?
class car:
model = "
age = 20
myCar = car()
myCar.age= myCarage + 10
print(myCarage)
Output:

What Is The Output?class Car:model = "age = 20myCar = Car()myCar.age= MyCarage + 10print(myCarage)Output:

Answers

Answer 1

Answer:

Following are the modified code to this question:

class car:#defining a class car  

   model = ""#defining a class

   age = 20#defining an integer variable that hold a value

myCar = car()#creating reference of class

myCar.age= myCar.age+ 10#Use reference to add value in age variable

print(myCar.age)#print age value

Output:

30

Explanation:

In the above code class care is defined, inside the car a string variable "model", and an integer variable "age" is defined that hold a value, in the next step, class reference myCar is defined, that used to add value in age variable an at the last we use print method to print age variable value.


Related Questions

Which line of code will cause the loop to execute exactly one time?

for b in range(12, 12):
for b in range(12, 13):
for b in range(13, 13):
for b in range():

Answers

for b in range (12, 13)?

this is very simple i just need someone to type out this for me

Answers

Answer:

#27

2i , -2i, i, -i            i^2 = -1

1(x - 2i)(x + 2i) 1(x-i)(x+i)

x^2 +2x-2x -4.2i x^2 -xi-xi -i

(x^2 + 4)      x^4 + 1

x^2 +x^2 +11x

x^4 +5x^2 +4

+4+2+2+-1

*This was not simple for me

How many bit make a byte .​

Answers

Answer:

It is easy .8 bits.You have to note this

Answer: 8

1 byte = 8 bit

Dora has inserted a text box into a Word document that she is formatting. Which strategy will not format text boxes? Create a link between two text boxes. Set the height and width of the text box. Add background images to the text box. Link the text box to another document.​

Answers

Answer:

D. Link the text box to another document.​

Explanation:

A text box is an object that you may add to your page that allows you to place and enter text wherever in it. The correct option is D.

What is a text box?

A text box is an object that you may add to your page that allows you to place and enter text wherever in it. Content boxes may be handy for attracting attention to a certain text and also for moving text about in your document.

Dora has inserted a text box into a Word document that she is formatting. Therefore, the strategy that will not format text boxes is strategy will not format text boxes.

Hence, the correct option is D.

Learn more about Text Box:

https://brainly.com/question/13812028

#SPJ2

(This is for photography segment exam btw)

Who created the first known photograph?

A. George Eastman
B. Ansel Adams
C. Joseph Niepce
D. Louis Daguerre

Answers

Answer:

C. Joseph Niepce

Explanation:

C is correct for sureee

WILL GIVE BRAINLIEST! The command simplify is used if you only want the first two digits of a decimal to appear in the interpreter.

true

false

Answers

Answer:

falsee?

Explanation:

Answer:

Yes its false i believe

Explanation:

With _________, users will receive recommendations for items liked by similar users.

Answers

Answer:

Collaborative filtering

Explanation:

Collaborative filtering is an algorithms family in which there are various ways to determine the same users or items also there are various ways to determine the rating depending upon the same users rating

Therefore as per the given situation, the above is the answer

Hence, the same is to be considered

Other Questions
Find the slope of the line. A rectangular parking lot is 3/4 mile long. If the area is 3/8 square mile, what is the width of the lot? Please help me with 7 When 490 college students were surveyed, 130 said they own their car. Construct a 95%confidence interval for the proportion of college students who say they own their cars. How did education differ for the rich and poor in Islam? When the allowance method is used for bad debts, the entry to write off an individual account known to be uncollectible involves a 6 + 3(x + 4)PLEASE HELP!!!! I will give brainliest what did city-states have that other cities did not? I really don't know how to do this please help me and tysm. :)Jan is 16 years old. Jan has decided she wants to lose 8 pounds in 1 month. Jan currently eats a lot of foods high in sugar, sodium and trans fats. She also only walks once a week for 30 minutes and spends most of her time playing video games. You are Jans Nutritionist. Create a detailed plan to help Jan lose 8 pounds in 1 month based on the information from the video. (You may have to re-watch the video and take notes. You can look back at the workbooks for unit 5 too). Help needed ASAP due soon :/ ASAP PLEASE Africa and Asia imperialized Europe by taking land that did not belong tothem and killing millions of people. *O TrueFalse which of these parts of a flower contain male gametes?a, anthers.b, stigma.c, style. d, ovary. Do Recommendations Seventh grade > S Solve for d. 3 + 2d = 5 If u anserw these two ill give u 80 points! PLEASE HELP I NEED HELP WITH NUMBER 6! Michael puts $800 into a savings account. The account earns 2% simple interest. How much interest will he earn in 6 months? Where do animators work? Read the excerpt below and answer the question. The spirit that I have seenMay be the devil: and the devil hath powerTo assume a pleasing shape; yea, and perhapsOut of my weakness and my melancholy, [He] abuses me to dam(n) me (Hamlet; Act II, scene ii)What is the meaning of the word melancholy, as it is used above?A: depressionB: ecstasyC: greedD: outrage PLEASE HELP I'M BEING TIMED!!!!!!!!!!!!!Yo com una naranja ayer.correctincorrect At a grocery store to gallons of milk cost $7.20 and 5 gallons of milk cost $18 write an equation relates the total cost T to the gallons of milk purchased M