What does the following loop do?

val = 0
total = 0

while (val < 10):
val = val + 1
total = total + val
print(total)

Prints the numbers backwards from 10 to 1.

Prints the sum of the numbers from 1 to 10.

Finds the average of the numbers between 1 and 10.

Prints the numbers from 1 to 10.

Answers

Answer 1

Answer:

Prints the sum of the numbers from 1 to 10.

Explanation:

YOU NEED BETTER INDENTATION

Total is the sum.

Each loop it's added

:)


Related Questions

Why do you usually find domain names instead of IP addresses in a URL? Select one: a. An IP address would make your web page load more slowly b. A domain name is easier to remember C. An IP address is not guaranteed to get you to the right server computer d. Domain names are free, while IP addresses are very expensive ​

Answers

Answer:

b

Explanation:

for exaple brainly.com is easy to remember instead of 104.17.73.91

delete temp or %temp% files in Windows 10 is safe and, can it help boost up your PC fps?

yes or no

Answers

Answer:   yse

Explanation...

To prevent the header from appearing on the title page of your document, select the______ option .
a. Different Odd and Even Pages
b. Different First Page
c. Position Grouping
d. Page Number​

Answers

Answer:

b. Different First Page

List any ten keyboard symbols.​

Answers

Answer:

Esc- Esc (escape) key.

F1 - F12 What are the F1 through F12 keys?

F13 - F24 Information about the F13 through F24 keyboard keys.

Tab Tab key.

Caps lock- Caps lock key.

Shift- Shift key.

Ctrl - Control key.

Fn- Function key.

Alt- Alternate key (PC only; Mac users have an Option key).

Spacebar- Spacebar key.

Hope this helps, have a great day/night, and stay safe!

Describe the scope of the variables in this code.

class pet:
def __init__(self,strSpecies,strName):
self.species = strSpecies
self.petName = strName

def __str__(self):
return self.species + " named " + self.petName

def changeName(self, newName):
self.petName = newName

class petCarrier:
size = 'medium'
color = 'red'

The scope of petName ______.

The scope of color is ______.

Accessible to the entire program
limited to the petCarrier class
limited to the pet class


(both of the blanks need one of those answers)

Answers

The scope of petName is local to the class pet.

The scope of color is accessible by all parts of the program.

How to interpret programming variables?

The variable petName is local to the class; This isdue to the fact that the variable was created in a function whose name begins with two underscores.

The variable color; This is created in the petCarrier class and is accessible to the entire function. This was not created in a function whose name begins with an underscore.

Read more about programming variables at; https://brainly.com/question/9238988

#SPJ2

Answer:

The scope of petName limited to the pet class

The scope of color is accessible to the entire program

Explanation:

edge

Compare and contrast the advantages and disadvantages of the Windows, Apple and Linux operating systems.

Answers

In apple, you may do other things that windows can not provide. Yet, Windows are good aswell since it has better things than apple. I’m so sorry if i’m wrong.

Which statement best describes the pros and cons of lack of regulation for cloud-based technology? Lack of regulation enables people to collaborate without the extra cost of paying a service provider; however, there is an increased opportunity for cybercrime. Lack of regulation speeds up the process of invention, but requires individuals to back up their own data. Lack of regulation encourages open innovation, but is not always secure. Lack of regulation encourages greater collaboration, but can lead to increased cost from price increases.

Answers

Answer:

3.) Lack of regulation encourages open innovation, but is not always secure.

Explanation:

Got it right in Introduction to Careers in Arts, A/V Technology and Communications

What is a product of respiration

Answers

Answer:

carbon dioxide and water

Explanation:

Other Questions
According to the boxplot shown below, what is the third quartile (Q3) value?4112749 What impact did new farming practices and domestication of animals have during the Neolithic Revolution? President Trumps policy and President Elect Bidens policy on Nuclear Energy. Is nuclear energy poised to be part of Americas future? Explain why or why not. rewrite as difference of squares (2x+5)(2x-5) The equation below describes a proportional relationship between x and y. What is the constant of proportionality? Y=4/7x What change did the cotton gin have upon the amount of cotton that could be seeded in one day? there are 50 kilometers in 31 miles. which representation does NOT show the same relationship? cual es el genero utilizado en el poema dime vencedor rapaz Once a protein is made, its biochemical and structural properties play a role in producing ________.a. phenotype b. chromosomec. DNA d. mutant e. genotype Yo can I get some help with this question A cookie contains 150 calories. If you eat no fewer than 2 cookies and no more than 8 cookies, how many calories will you consume?What would the inequality look like A fungus with white spores cross fertilizes a fungus with black spores. If 10% of the progeny bear white spores while 90% of the progeny bear black spores, what must be true?A.The trait for spore color is determined by exactly one gene.B.The trait for spore color is determined by more than one gene.C.The allele for black spores is dominant over that for white spores.D.The allele for white spores is dominant over that for black spores. Which statement about the Articles of Confederation is true When trying to support a proposition an author should use several types of support . true or false 4. Everyone has just cleaned the house. *(10 Points)Todo el mundo acaban de limpiar la casa.Todo el mundo acaba de limpiar la casa.Todo el mundo acabo de hacer los quehaceres.Ninguna de los anteriores How many H atoms in Mg(OH)2 Find the size of unknown angles I need help with this, I can't figure it out. Zwick Company bought 25,500 shares of the voting common stock of Handy Corporation in January 2021. In December, Handy announced $202,700 net income for 2021 and declared and paid a cash dividend of $3.00 per share on all 202,500 shares of its outstanding common stock. Zwick Company's dividend revenue from Handy Corporation in December 2021 would be: Whats the common factor for 72 and 84