What is the output?

class car:

model = "

age = 0

myCar = car()

myCar.age= myCar.age + 10

print(myCar.age)

Output: ___

Answers

Answer 1

Answer:

10

Explanation:

# A class named car is created

# There are two variables in the class, model and age.

# model is a string holding value for the model of the car.

# age is an integer holding value for the age of the car.

class car:  

   model = ''   # model is initialized as empty string

   age = 0       # age is initialized as 0

myCar = car()    # creating a car object named myCar

myCar.age= myCar.age + 10   # the value of the age is updated by adding 10. (Note that myCar was our object. If we want to access any properties of the object, we type the object name, . , and the property name. Initially, age was 0, we added 10 to it and it becomes 10)

print(myCar.age)    #prints the age of the myCar object, 10


Related Questions

Design a program that ask the user to enter a series of positive numbers. The user should enter a negative number to the series. After all the positive numbers have been entered the program should display their sum

Answers

Answer:

total = 0

while True:

   number = float(input("Enter a number: "))

   

   if number < 0:

       break

   

   total += number

   

print("The total of the positive numbers entered is", total)

Explanation:

*The code is in Python.

Initialize the total as 0

Create a while loop. Inside the loop:

Ask the user to enter a number. Check the number. If it is smaller than 0 (This means it is a negative number), stop the loop using break. Add the number to the total (cumulative sum). (This way your program keeps summing numbers until you enter a negative number)

When the loop is done, print the total

Create a function called biggestNum that returns the largest number in an array of integers. The function is passed only one parameter, an array. In main, ask the user the input eight integers. Each integer should be added to an array called nums. Then, call the function and output the largest number in the array.

Answers

This is for Python

def biggestNum():

   array = []

   for i in range(8):

       number = int(input('Enter number: '))

       array.append(number)

   

   return max(array)

print(biggestNum())

How does HTTP rely on other layers of the internet?

DNS -

TCP-

IP-

Physical Internet -

Please help !!!

Answers

Answer:

All of your communications are being sent over the Internet so these requests are being sent inside TCP/IP packets and over the physical wires of the Internet. ... It uniquely identifies the location of each computer or device connected to the Internet.

Which of the following is not a key component of a structure?
A. Name
B. Properties
C. Functions
D. Enumerations

Answers

D. Enumerations! Because I know that is NOT a leg compentent of a structure

a*=++a/6+b++ 3 if a=3,b=4​

Answers

Answer:

[tex]a=22.5[/tex]

Explanation:

Given

[tex]a*=++a/6+b++3[/tex]

Required

The result when [tex]a=3[/tex] and [tex]b=4[/tex]

Analyzing the given instruction

a*=(++a)/(6)+(b++3)

Single out and solve the expressions in bracket

(++a) = a -- When the ++ operator appears before an operand, it is called pre increment. meaning that the operation will be done before the operand will be incremented.

So: in this case: ++a = a

[tex]b++3 = b + 3[/tex]

The operator, as used in that statement is the same as: b + 3.

So:

[tex]a*=(++a)/(6)+(b++3)[/tex]

[tex]a*=(a)/(6)+(b+3)[/tex]

[tex]a*=(3)/(6)+(4+3)[/tex]

[tex]a*=0.5+7[/tex]

[tex]a*=7.5[/tex]

The above expression is calculated as:

[tex]a=a*7.5[/tex]

So:

[tex]a=3*7.5[/tex]

[tex]a=22.5[/tex]

Anyone who know how to use canva .com please make a logo of the name : Deadly Sins

Answers

Answer:

Yes ma'am as in the anime?

Explanation:

Cuz there's a anime show called 7 deadly sins or just deadly sins?

Answer:

hello give the person above brainlist

Explanation:

Tina reported a safety hazard at her workplace to OSHA. Representatives from OSHA came to her work and inspected the issue, then gave her employer a citation. The day after Tina's employer received the citation, Tina was given new jobs which were menial and difficult. Which of Tina's rights under OSHA was violated in this situation?

A) Freedom from retaliation for exercising safety and health rights

B) Knowledge of hazardous workplace conditions

C) Obtaining training as provided in the OSHA standards

D) Access to hazard exposure and medical records

Answers

Answer:A freedom from retaliation for exercising safety and health rights

Explanation:

Which of the following are logical reasons for using a pie chart to show how employees spend their time at ABC organization? Choose all that apply.

Answers

The logical reasons for using a pie chart to show how employees spend their time at ABC organization are;

the pie chart will help to show breakdown of hours worked by all employees at ABC organization.The pie chart works well to show changes in productivity over the course of a year.The pie chart works well to show trends in data.

What is a pie chart ?

A pie chart  can be regarded as a circular statistical graphic, partitioned to slices to illustrate numerical proportion.

With the use of this pie charts, the ABC organization can be able to know breakdown of hours worked by all employees at ABC organization , hence option 1,2,4 are correct.

Learn more about pie chart  at;

https://brainly.com/question/8407283

Answer:

A, C

Explanation:

its a and c your welcome

The __________ gear is the input gear.
A. Drive
B. Driven

Answers

Answer:

A) Drive

Explanation:

Driven is past tense

Driven is usually used more in sentences with out a car like "It had driven her crazy"

Write the function greeting that takes a string as input. That string will be formatted as Name Age Hobby, without any punctuation. greeting should split their response into list elements, then use index values to greet them by name and respond that you enjoy that hobby as well, with the format: ‘Hello, ! I also enjoy !' Make sure your output matches this format! For example, greeting('Jose 17 hockey') # => 'Hello, Jose! I also enjoy hockey!' greeting('Cindy 14 robotics') # => 'Hello, Cindy! I also enjoy robotics!'

Answers

Answer:

The function in Python is as follows:

def greetings(details):

   details = details.split(' ')

   print('Hello, '+details[0]+'!, I also enjoy '+details[2])

Explanation:

This defines the function

def greetings(details):

This splits the input string by space

   details = details.split(' ')

This prints the required output

   print('Hello, '+details[0]+'!, I also enjoy '+details[2])

After splitting, the string at index 0 represents the name while the string at index 2 represents the hobby

Price of ETH coin right now?
Don't answer if u don't know.

Answers

Answer:

58,715.40

Explanation:

A stairway has 6 steps. Is a handrail required?

A) A handrail is required

B) A handrail is not required

C) Double handrail are required

D) Only noising is required.

Answers

Answer:

A. A handrail is required

Answer:

t think its A, a handrail is required

Find the total cost of a $125 coat purchased in Los Angeles County where the sales tax is 9%. Use the expression c + 0.09c
A
$11.25
B
$112.50
c
$126.25
0 $136.25

Answers

The answer is B I believe

What are inserted to show the total number of pages in Word?

Answers

Answer:

Include total number of pages in the page number

Go to Insert > Page Number.

Do one of the following: Select Current Position if you have a header or footer. Select a location if you have no header or footer yet.

Scroll until you see Page X of Y and select a format.

Select Close Header and Footer, or double-click anywhere outside the header or footer area.

Hello, I am smart without showing off and I will help you with your homework and tell you the correct answers (◠ᴥ◕ʋ).​

Answers

Answer:

HII CSN U ANSWER MY MATH QUESTION

Help! Will add the brainliest.

Which of the following is a tip for getting a good pet photograph?

A. Always stand when taking the picture to keep the pet away from the camera.
B. Show the pet's personality.
C. Avoid having others with you.
D. All of the above

Answers

Answer:

Show the pet's personality

Explanation:

You want to get to know an animal when you look at their photo. If they are smiling then that will show how happy they are! Also, A is incorrect because sometimes you want to be on the same level as your animal. So crouch down and take that close up! And C is wrong because sometimes it is helpful for someone else to be there.

Give 5 advantages of using powerpoint?​

Answers

it can be presented pictorially and thus make it easier to adopt the material

HELP mE PLZ

Gabby needs to perform regular computer maintenance. What should she do? Check all that apply.

Remove unwanted files.
Reboot the computer.
Back up her data.
Scan for viruses.
Delete the browsing history.

Answers

Answer:

scan for viruses

remove unwanted files

back up her data

if I make an Xfinity account can I turn off parental controls that my sister put on with her Xfinity account?

Answers

It depends but I don't think it's likely. Parental control needs a pin so it can be turned off and unless you know the code, it might not work.

What classes should I take in high-school for majoring in computer science?

Answers

Answer:

Computer science are the disciplines that study information, computing and the applications or ecosystems where they are developed. It is a science that comes from applied mathematics and has 3 branches that are quite well known. On the one hand we have software engineering, secondly theory as such (primary study of algorithms and data, etc.) and finally the application of the amalgam of the first two, which end up resulting in disciplines such as big data, cybersecurity or computer security, machine learning, artificial intelligence, etc. However, we are talking about a very broad science with various branches of work. Technological advances that have improved the scope of education, now allow us to develop in specific skills and computer science is one of the macro careers that have benefited the most thanks to the diversity of subjects it encompasses. This is where the on-demand courses available on the edX platform come in. Computer scientists are in one of the best times for their career advancement. We invite you to be part of the technological development and information and computing technologies through online courses.

Explanation:

what advice can you give to learners to achieve their goals​

Answers

Answer:

Never give up, take your time, don't get distracted easily, lock your electronics in a box until you finish your work.

Reach for the stars! Always go the extra mile! Never give up!

In a sentence

If you wanted to become a police officer and you had to read boring books and you wanted to give up, but always think "I should always push myself past my limits, If I gave up then how would i know what I could have become?

Trademark

Owned by me

Price of Tether coin right now?
Don't answer if u don't know.

Answers

Answer:

Honestly I believe its $1

Explanation:

It just stays on $1 don't know how tho

Jason would like to add visual representations to a table that will be used to easily show comparison data. Which option should he use?

conditional formatting
data bars
expression builder
field criteria

Answers

Answer:

a. conditional formatting

Explanation:

Other Questions
5.Loren is running in a long distance race. She is able to keep a steady pace of 10 feet per second. PLEASE HELO ME AND EXPLAIN PLEASE. AND PLEASE SHOW IN STEPS!! i will mark brainliest if you get it correct! (9+3)2 (5-1))[tex](9 + 3) {?}^{2} \div (5 - 1)[/tex] Which body system includes the lungs?m Cale Company buys surgical supplies from a variety of manufacturers and then resells and delivers these supplies to hundreds of hospitals. Cale sets its prices for all hospitals by marking up its cost of goods sold to those hospitals by 7%. For example, if a hospital buys supplies from Cale that cost Cale $100 to buy from manufacturers, Cale would charge the hospital $107 to purchase these supplies.For years, Cale believed that the 7% markup covered its selling and administrative expenses and provided a reasonable profit. However, in the face of declining profits, Cale decided to implement an activity-based costing system to help improve its understanding of customer profitability. The company broke its selling and administrative expenses into five activities as shown:Activity Cost Pool (Activity Measure) Total Cost Total ActivityCustomer deliveries (Number of deliveries) $420,000 5,000 deliveriesManual order processing (Number of manual orders) 624,000 8,000 ordersElectronic order processing (Number of electronic orders)170,000 10,000 ordersLine item picking (Number of line items picked) 675,000 450,000 line itemsOther organization-sustaining costs (None) 650,000 Total selling and administrative expenses $2,539,000 Cale gathered the data below for two of the many hospitals that it servesGeorgetown and Providence (each hospital purchased medical supplies that had cost Cale $38,000 to buy from manufacturers): ActivityActivity Measure University Memorial Number of deliveries 16 28Number of manual orders 0 49Number of electronic orders 18 0Number of line items picked 190 210Required:1. Compute the total revenue that Cale would receive from Georgetown and Providence.2. Compute the activity rate for each activity cost pool.3. Compute the total activity costs that would be assigned to Georgetown and Providence.4. Compute Cale's customer margin for Georgetown and Providence. Which group number below represents the Oxygen Group?1 point18Periodic Table of the Elements141521816 55 people showed up on a party.There were 3 less women than men.how many men were there? What was the REAL source of the El Dorado legend? Find the perimeter of this semi-circle with diameter 62cm.Give your answer as an expression in terms of Pi Please include the formula 15. Please type the correct conjugation for each verb. Make sure your answers are in lower caseincluding the first letter. The verb is escribirYo(1 Point)Enter your answer For English, we have to write a mini biography and include photos. Im doing it on my laptop. Should I use this photo? If so, should I crop it? The conflict between Mrs. Djebar's modesty and her pride in "My father writes to my mother" is an example of what type of conflict?-Self vs society-self vs nature-self vs self-self vs the supernatural HELPP PLEASEEE John's toy car is built on a scale of oneinch represents 12 inches on the actualcar. If john's toy car is 5 inches long,how long is the actual car? Which describes the effects of the dawns plan? A parallelogram has vertex at (-5 , -1) (-2, -1), (-3,-4), and (-6,-4). What is the approximate perimeter of the parallelogram round your answer to the nearest hundredth T siempre me _______________________ (escribir) mensajes de texto. Which factors combined to make Germany vulnerable to totalitarianism? germans believed that they were cheated by the treaty of Versailles nationalistic germans didnt have very much state pride adolph Hitler promised the collapse of Germany hitler promised that extreme action would take Germany out of the great depression What happens there in Easter island and when? Give me a good answer please Help me please with math The requirement before a bill can be sent to the governors desk