Basic python coding, What is the output of this program? Assume the user enters 2, 5, and 10.
numA = 0
for count in range(3):
answer = input ("Enter a number: ")
fltAnswer = float(answer)
numA = numA + fltAnswer
print (numA)
Thanks in advance!
:L

Basic Python Coding, What Is The Output Of This Program? Assume The User Enters 2, 5, And 10. NumA =

Answers

Answer 1

Answer:

17.0

Explanation:

after first loop numA = 0.0 + 2 = 2.0

after second loop numA = 2.0 + 5 = 7.0

after third loop numA = 7 + 10 = 17.0


Related Questions

Please help with task!!! Computer Science

Answers

Answer:

for (int i = 0; i < a[].length; i++) {

for (int j = 0; j < a[][].length; j++) {

if (a[i][j] > 7)

return a[i][j];

}

}

Explanation:

A nested for-loop can iterate through every row and column and then perform the comparison, returning it if the condition is met.

help plz ;-;

which of the following terms means "storing a value in a variable"?

assignment
operator
variable
exponent​

Answers

Answer:

Assignment

Explanation:

Storing a value in a variable (memory location) is called assignment.

In programming, Assignment serves as storing a value in a variable.

variable serves as a container for a value. For instance, when performing addition, the number there is a variable

A variable is been considered with space in the computer's memory and this can help in holding a value.

Therefore, option A is correct.

Learn more at:https://brainly.com/question/23275071

a python program for the following output using for loop.

Output:


-13

-7

-1

Answers

Answer:

In Python

for i in range(-13,0,6):

   print(i)

Explanation:

Required: A program to display the given output

From the program, we observe the following:

The output begins at 13 i.e begin = 13

The output ends at -1 i.e end = 1

And the difference between each output is 6.

i.e. [tex]-1 - (-7) = -7 - (-13) = 6[/tex]

So, the syntax of the for loop is: (begin, end + 1, difference)

The program explanation goes thus:

This iterates through the -13 to 1 with a difference of 6

for i in range(-13,0,6):

This prints the required output

   print(i)

What is the output of this program? Assume the user enters 2, 5, and 10.
numA = 0
for count in range(3):
answer = input ("Enter a number: ")
fltAnswer = float(answer)
numA = numA + fltAnswer
print (numA)
Output:

Answers

Answer: 17.0

Explanation: I did ran it on PyCharm and that was the outcome.

PLEASE MARK BRAINLIEST AND RATE MY ANSWER :)

Please its argent and I will give you BRAINLIEST ANSWER 6. How would you confirm that a colourless liquid given to you is pure water?

Answers

Answer:

Evaporate the colourless liquid on a low flame. If no residue is left and boiling exactly at 100 ºC then it is pure water otherwise not.

Explanation:

1. What is the difference between operating systems and application software? (1 point)

Answers

The main difference between operating system and application software is that an operating system is a system software that works as the interface between the user and the hardware while the application software is a program that performs a specific task. This software assists the tasks of the system

What is the best programing language to use for building video games?

Answers

hey

I'm going to college for game design.

one of the best languages and the one I'm studying in is c# it is used in unity and many other game engines but there are many more. Just to list a few c++, Java, and many more it is up to you. if you would like more info about this just let me know By the way what game are you planning to make that is one of the most important factors

Hope this helps

-scav

Consider the following code segment

Answers

Answer:

E

Explanation:

The first loop assigns "John" to name and prints name

The second loop iteratively prints every name in order in the given array.

Assume there is an interactive math tutor. Many students take the math lessons online. At the end of each lesson, students have to attempt a test. What is the performance measure of this agent?

A.
count the number of students
B.
display suggestions for solving problems
C.
take input from the keyboard
D.
enable the student to attain maximum marks

Answers

Answer:

I think it is D

Explanation:

This is the goal, or the requirement for success.

Answer:

D. Enable the student to attain maximum marks

Explanation:

Correct on Clever

Describe a way that you can envision using the power of the computer through


distributed computing to enhance the quality of your life.

Answers

Answer:

Explanation:

In a way, we can use cryptocurrency as an example. Most cryptocurrencies use distributed computing in a form of decentralization to create an economy/system of information where individuals can transfer money. This ultimately gives back power to the people and puts individual's money back in their own hands. Therefore, getting rid of the banks entirely. This is an enormous enhancement in quality of life and is only one of the many innovations that cryptocurrencies have created.

A way that you can envision using the power of the computer through distributed computing to enhance the quality of your life is through content creating/making.

What is content creation?

Content creation is known to be the act or method of finding out/ identifying a novel topic you want to write about and then deciding which way you want the content to take.

Here, one has to create different strategy in producing content.  Through content making, one can use the power of the computer via distributed computing to enhance the quality of your life.

Learn more about  content creating from

https://brainly.com/question/13171394

Factorise (x+y)^3- (x^3+y^3)​

Answers

Answer:

3xy(x+y)

Explanation:

if you want to simplify it it's 3x^2y+3xy^2 but you said factorise so it should be the answer 3xy(x+y)

Hope this helps:)

Answer:

3xy (x +y)

Explanation:

Step 1 Evaluate: (x+y)^3 = x^3+3x^2y+3xy^2+y^3

Step 2 Pull out like terms: 3x^2y+3xy^2 = 3xy × (x+y)

Answer:

3xy (x +y)

hey Guys I wanted to have fun so I made a riddle first to solve gets the crown \

When John was six years old he hammered a nail into his favorite tree to mark his height. Ten years later at age sixteen, John returned to see how much higher the nail was. If the tree grew by five centimeters each year, how much higher would the nail be?

Answers

Answer:

how.much higher??? 5cm.

Explanation:

or unless it was a different approach-

then it would have gone 50 cm which is 19.6 inches

A set of programs that enable the hardware to process data is _____.

a. network

b. procedures

c. software

d. hardware E. database

Answers

I think C but I'm not sure


What is the difference between iterative and sequential?

Answers

Answer:

iterative means to iterate, or "repeat" ex: 4,4,4,4,4

sequential means to increase with a constant ex:

1,3,5,7,9,11,13. the constant that the terms are incremented by is 2

Calculate the ERA

A pitcher’s ERA (earned runs average) is calculated by multiplying the number of runs (scores) times total innings in the game (usually 9) and then dividing by the total innings that the pitcher pitched.

Write a function that assumes that there were 9 innings in the game and takes in two numbers that represent the earned runs and the innings pitched. The function should return the ERA.

Answers

Answer:

In Python:

def returnERA(runs,total):

   ERA = runs *9/total

   return ERA

Explanation:

This defines the function. It receives the number of runs and the total runs as its parameters

def returnERA(runs,total):

This calculates the ERA

   ERA = runs *9/total

This returns the ERA

   return ERA

you are teaching a class about basic camera functions like power, basic date/time, menu navigation, and how to properly attach and remove lenses from a DSLR or hybrid camera. While you would likely do a lot more showing than telling while teaching, share a script of what you would say to properly explain how to perform these basic actions.

Answers

Answer: So, I would start the class off with this, “Camera’s are so crucial to life, why because they capture light and memories that are a once and a lifetime thing.” Then after the students dwelling on that statement, I would start with talking about how to set up a camera. I would pull out mine and pull up a diagram on the green screen and show them step by step what I do. First, you want to turn the camera on by turning the switch where the white line lines up with “on”, once you are, then you want to set up the time and date. To do so, you want to click on the menu button, once you are in, there should be a list of five options, you want to go to the setup menu. Once there you want to click on “World time” there you can change the date and time.  Once you have set up the time you want to go back to the menu screen, there are 5 options. The five options are called “playback menu”, “Shooting menu”, “Custom Setting menu”, “Setup menu” and “retouch menu”. These five have various purposes in which we will get to later on inside of the lesson. Now camera lenses are super easy, when you are changing or taking off lens, there should be a button on the left side of the camera right under your camera model name. Hold that button in with one hand and grab the lens with the other, then you want to twist the lens till it comes off. To put it back on you want to line up the white dots and it should slide in and then twist it back on.  

Explanation: That is the answer

It should be noted that a camera simply means an optical instrument that's used to capture images or to record moving images.

A camera simply consists of a lens that focuses light from the scene. In a camera, the viewfinder is vital in viewing and framing the subject.

The flash is vital in producing light. The camera lens is important to shift between focal lengths. The shutter button is used to capture it record images.

Learn more about camera on:

https://brainly.com/question/609508

How many countries don't uses the metric system?​

Answers

Answer:

The USA, Liberia, and Burma (a.k.a. Myanmar)

Explanation:

These are the only 3 countries that don't use the metric system

3 countries don’t. At this time, only three countries—Burma, Liberia, and the US—have not adopted the International System of Units (SI, or metric system) as their official system of weights and measures."

write a loop that finds the sum of the numbers between 7 and 34

Answers

THIS IS FOR PYTHON

total = 0

for i in range(7, 35):

   total += i

   print(i)

print(total)

I forgot the reason but python always stops one number before your desired value. So that's why it's 35

The loop that finds the sum of the numbers between 7 and 34 i2 as follows:

x = 0

for i in range(7, 35):

   x += i

print(x)

   

The code is written in python.

The variable x is initialise with the value zero.

For loop is used to loop through the range of value 7 to 35, excluding 35.

The looped values are then added to the variable x

The final sum is then printed out using the print statements in python.

learn more on loop: https://brainly.com/question/21897044?referrer=searchResults


Avi does not want to save his internet browsing details on his computer. What should he do?
Avi should (copy,delete,or save) all the(virus,cookies,or logs) from his system after he has finished browsing.

Answers

He should delete logs.

What were the important developments that occurred in photography that facilitated the creation of motion pictures? Two critical developments in photography that enabled the development of motion pictures were___and___​

Answers

Answer:

"A moving picture is an illusion that makes a still photo seem to move. The basic principal behind motion pictures is the fast transition between one picture to the next, almost creating a seamless transition. A flip-book is a good example of this. Another example would be film used for old movies. The film contains negatives of an image which when light is shined through creates a "shadow" of the image. If you quickly transition the film from one image to the next you end up a motion picture."

Explanation:

1. This are tools used to make any presentation interesting and exciting.
a. audio and video
c. hyperlinks
b. animations
d. text and graphics​

Answers

Answer:

c. hyperlinks

Explanation:

The correct option is - c.hyperlinks

Reason -

The "hyperlink" function in PowerPoint allows users to advance from one slide to another slide in the presentation when they click on a predetermined word, shape, or image, thereby allowing for a more dynamic and interactive experience than can be obtained with serial presentation of slides alone.

1

The tire pressure is 20% underinflated.

The service life is reduced by...

%

check

Answers

Answer

A constant 20 percent underinflated condition will reduce the life of a tire by 30 percent, and 40 percent underinflation will reduce tire life by 50 percent. Underinflation will increase flexing and heat buildup within the tire components which deteriorate tires and reduces casing life and retreadability.

7. Write a Qbasic program to read the value
of P T and A Find simple interest and total.
amount​

Answers

Answer:

PRINT "Values for Principal (P), Rate (A) and Time (T)"

INPUT P, A, T

I = P * A * T/100

Amount = P + I

PRINT "Interest: ", I

PRINT "Amount: ", Amount

Explanation:

This prompts the user for values for Principal, Rate and Time

PRINT "Values for Principal (P), Rate (A) and Time (T)"

This gets values for Principal (P), Rate (R) and Time (T)

INPUT P, A, T

This calculates the interest (I)

I = P * A * T/100

This calculates the amount (A)

Amount = P + I

This prints the interest (I)

PRINT "Interest: ", I

This prints the amount (A)

PRINT "Amount: ", Amount

If Gabrielle's message contained information that is only intended for the recipient, the message should be marked to discourage it from being shared?
private
normal
sensitive
delayed​

Answers

Private.

From the lack of information in the question, it can be assumed that the message arrived in a timely fashion.

As it is not said that the message is urgent, it is not sensitive to a reply.

Finally, there is a caveat to the message in that it is only intended for he recipient, therefore it is not a normal message.

This leaves one answer and one only: Private.

choices.
1. To check the integrity of your hard disk and fix various file system errors, which
Windows utility should be implemented?
A. Back up B. Check disk C. Defragmentation D. Disk Clean up
2. An event or action took place and it caused damage to data, hardware, software
and processing capability of the computer. From the statement given, which of the
following is being described?
A. logic programs
C. security process
B. security access
D. security risks
3. This software program infect, damage and disrupts the whole computer system.
Which of the following is being described?
A. Malware B. Trojan horse C. Virus D. Worms
4. To protect the whole computer system, which software utility is needed?
A. Anti-virus B. Check disk C. Defragmentation
D. Disk clean up
5. To avoid losing valuable data to your computer, which is the most important thing
A. always save files on the desktop
B. regularly back-up your files
C. always used permanent storage devices in saving files
D. regularly save your files into temporary devices​

Answers

Answer:

1. B

2. D

3. C

4. A

5. B

Explanation:

1. To check the integrity of your hard disk and fix various file system errors, the Windows utility which should be implemented is Check disk (Chkdsk). This utility is always used with the command line interface (CLI) with the command "chkdsk."

2. An event or action took place and it caused damage to data, hardware, software and processing capability of the computer. From the statement given, security risks are being described. Any event or action that is capable of causing a problem to a computer system is considered to be a security risk and should be prevented through the use of an appropriate utility software.

3. Virus is a software program that can infect, damage and disrupts the whole computer system.

4. To protect the whole computer system, the software utility which is needed is an Anti-virus.

5. To avoid losing valuable data to your computer, the most important thing to do is to regularly back-up your files.

e-What is the important of Recycle bin?
Ans:​

Answers

the recycle bin is used in Windows computers to store deleted items such as files and folders. They are temporarily stored before they are permanently deleted.

What would you do if you experienced academic frustrations in school? Check all that apply.
Look for ways to do better academically in school.
Ask a friend to explain difficult concepts.
Try to identify the reason you are feeling frustrated.
Ask a teacher for help coming up with a solution.
Search online for help solving this problem.

Answers

I think it is all of them :))

Answer: all are correct

Explanation:

i say all because those are all really good ways to help you in school. if you are struggling then ask a to a teacher for help you, if you need more help, ask a friend. see what you can do to help yourself do better. see what you are doing that could possibly be the reason of your frustrations. and the internet is always open to questions and answers. but it also depends, some schools are strict about using the internet for answers. but if your school is different then use the internet freely. i hope this helped.

l
What do we call a statement that displays the result of computations on the screen?
ОА.
result statement
ов.
screen statement
OC output statement
OD
answer statement
OE.
input statement

Answers

Answer:

Output statement. The others do not make sense.

1) You are working with an organization as a network manager. The organization has

two offices in Abu Dhabi. Each office is equipped with 25 computers. The

management wants the smooth flow of information between both the offices and

does not want any delay.

a. Management has asked you to connect the computers in both the offices with

each other. What type of network will you suggest to them and what can be

some possible benefits of using that network?

b. The management wants that in the Head Office, there can be no access to data

from outside. Which type of network will be your preference to implement in

that case and what will be the benefit of that?

Answers

Answer:

Explanation:

a. In this specific scenario, the best option would most likely be a site-to-site VPN. This would allow each office to be independently connected to the internet and at the same time be connected to each other securely and efficiently. There should be unnoticeable or no delay at all between the two offices and sensitive files will be completely secure. Therefore, the two offices can easily transfer data securely between one another without fear of the data being intercepted.

b.  The same VPN network would work on the head office, but instead we can implement firewall restrictions to the head office network itself. These restrictions would prevent any or all incoming connections that are trying to request data from the local head office network. This would allow the head office to continue working without worry of unwanted intruders in their network.

Marissa is designing a web page that features lessons on how to build cabinets. how can she make the page most engaging for the user?

A. by adding warm colors to make the content more fun to view.

B. by adding a short video demonstrating how to build cabinets.

C. by adding a variety of font types to make the text look appealing.

D. by adding a slideshow that displays pictures of built cabinets.​

Answers

I am pretty sure it’s B because that’s the only answer that really correlates to teaching people how to build cabinets
Other Questions
Hello, I need help graphing with y = x+4, Hey yall i need help for this question please 5x - 3y = 24////standard form to slope intercept form what touch your heart while doing activity What is the most important thing you can learn from working out ? please help! will give brainliest which decimal is equivalent to 0.50 What is the answer to 2 1/3 (-3 2/3) ? HELP...... rewrite the equation by completing the square.x ^2 +10x+16=0 Mario y Juan (dormir) _______ pocas horas. what is the correct definition of Quechua?a. healer in Bolivia b. surviving language of the central Andesc. traditional Argentine food List three types of animals or birds used in the Temple sacrifices.sheepdovesoxenchickenspigs Read the example below, and answer the question that follows.Jonathan finished painting the ceiling.How would you classify the underlined portion? Plz help whats the length of the side Pleaseee help meeeee A Eurasian tree sparrow weighs 0.17 pounds. How many pounds are 4 eurasian tree sparrows and a 2-pound nest? Many organisms in the ocean (like plankton) rely on this source of food. What effects do you think this change in the decrease speed of the ocean currents could have on living things on the ocean?Please help He developed the concept of pi A. EuclidB. AritosthenesC. ArchimedesD.Hippocrates "I fear no man. I stand alone without the military to defend the constitution and laws of Georgia and to preserve the rights of the people to see that the man they intended to be governor is installed and that this office is not given to a pretender and a usurper." According to Arnall, who was the "pretender and the usurper"? Dr. Thomas Brewer Eugene Talmadge Herman Talmadge Melvin Thompson It is the "executable" phrase of WordWide Web with dynamic applications,?