1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Anna11 [10]
3 years ago
8

Write a program to complete the task given below: Ask the user to enter any 2 numbers in between 1-10 and add both of them to an

other variable call z. Use z for adding 30 into it and print the final result by using variable results.
Computers and Technology
1 answer:
joja [24]3 years ago
5 0

Answer:

a = int(input("Enter first value between 1 - 10"))

b = int(input("Enter second value between 1 - 10"))

z = a + b

z += 30

print("The value of z = ", z)

Explanation:

The code is written above in python language to perform the given task.

Now, let us explain each statement of code.

Step 1: The first two lines take input from the user prompting the user to enter the values between 1 to 10.

Then the values are type casted to int using int().

The values are stored in variables <em>a </em>and <em>b</em>.

Step 2: Then, the values of a and b are added to get another variable z.

Step 3: The statement 'z += 30' is equivalent to z = z+30

It adds 30 to the variable z and stores it in the same variable z.

Step 4: Finally the value of variable 'z' is printed using print() command.

You might be interested in
What is the name of a robot astronaut created by NASA
dsp73

<span>
The name of the robot astronaut created by NASA is Robonaut 2.</span>

<span /><span>This robot has arm, legs, a head and a torso. It even has fingers so that it is able to use the same tools that is used by human astronauts. </span>

<span> Hope this helps. :)</span>

4 0
3 years ago
Read 2 more answers
Which of the following situations is least likely fair use
kolezko [41]

Answer:

Is there more to the question or is that it?

8 0
3 years ago
Read 2 more answers
When do images or graphics in Microsoft Word hurt the document rather than help
Vinvika [58]

Answer:

When images or graphics excessively occupy most of the space on the page.

<u>Explanation:</u>

For example, if you observed the attached image you'll see a bad example in which the image excessively occupies most of the space on the page making the written text difficult to read.

Next, a good example of proper editing is found in the next image, which shows the written text properly aligned with the text.

3 0
3 years ago
You can pin applications to which two areas?
mrs_skeptik [129]

Answer:

A and C.

Explanation:

The taskbar and the Start are both shortcuts to use when opening applications. The taskbar is at the bottom of your computer or pc. And the start can be opened by pressing the windows key or clicking on windows at the bottom right (Windows only.)

Hope that helps!

5 0
3 years ago
What are the basic tasks performed by an operating system?​
Kruka [31]

Answer:

An operating system is a software which performs all the basic tasks like file management, memory management, process management, handling input and output, and controlling peripheral devices such as disk drives and printers.

Explanation:

i hope it helps:)

3 0
3 years ago
Other questions:
  • Describe in 2–3 sentences how you would use the autosum shortcut.
    9·2 answers
  • People in STEM careers are considered thinkers who reach conclusions through sound judgment and reasoning.
    11·1 answer
  • A process that allows software-based networked computers to run multiple operating systems and programs and share storage is cal
    5·1 answer
  • If you specify a user without specifying a hostname, mysql will
    13·1 answer
  • Among the following, which is the best protection against ransomware?
    8·1 answer
  • Which one of the following statements is true regarding the fetch-execute cycle? Each step of the fetch-execute cycle is perform
    15·1 answer
  • Which cell formatting is most likely to use $?
    5·1 answer
  • Private sharing model on Opportunities. Leadership has asked the Administrator to create a new custom object that will track cus
    7·1 answer
  • If you need some one to talk to you can talk to me
    13·2 answers
  • Lee has changed the style of his table to make the header row stand out. Next, he wants to center the text in the header row and
    11·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!