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
german
4 years ago
11

I'LL GIVE BRAINLIEST Program to total all numbers in a list: Create an empty list Ask user to enter a number to add to the list.

Continue to ask user to enter a number and continue adding the number to the list until user enter “stop” Add all the numbers in the list and display the total
Computers and Technology
2 answers:
solong [7]4 years ago
5 0

Answer:

numberlist = []

str = ""

while str != "stop":

 str = input("Enter a number: ")

 if str != "stop":

   try:

     numberlist.append(float(str))

   except:

     print("Ignoring", str)

print("The sum is ",sum(numberlist))

Explanation:

This solution also supports floating point numbers!

spin [16.1K]4 years ago
3 0

Answer:

Explanation:

list = []

while True:

num = input("Enter a number: ")

if num == "stop":

break

list.append(int(num))

total = 0

for i in list:

total += i

print(total)

You might be interested in
Worms often try to disguise from where they are sending data by using a bogus ip addresses instead of using an authorized ip add
Katyanochek1 [597]

If the question is asking whether it is true or false, the answer is false because worms are not responsible for disguising when they are sending data by using bogus ip addresses but it is the Trojan horses in which they are the one responsible for misleading users from the true intent or the real data.

5 0
3 years ago
You are given an integer N where 0 <= N <= 100, followed by another line of input which has a word W with length L where 1
andreev551 [17]

import math as m

def print_word(N, W, retries = 4):

for _ in retries:

if(N > 100 or N < 0 or len(W) > 50):

print("Number is out of range or word is too large. Try again.")

new_word = str(input("New word: "))

new_num = int(input("New number: "))

if(new_num >= 0 and new_num <= 100 and len(W) <= 50):

for row in new_num:

print(new_word)

return "Thank you for your time!"

if(N >= 0 and N <= 100 and len(W) <= 50):

for row in N:

print(W)

return "Thank you for your time!"

try:

N = m.floor(int(input("Enter a number from 0 to 100: " )))

W = str(input("Enter a word: "))

except ValueError:

print("Invalid Input!")

print(print_word(N,W))

6 0
2 years ago
Select the correct answer.
saveliy_v [14]

Answer:

its TASCAM porta studio

Explanation: i got it right on edge

6 0
3 years ago
Gps receivers are commonly used by individuals to determine their geographic location while hiking and to obtain driving directi
soldier1979 [14.2K]
I think it is true also.
7 0
4 years ago
Which tab provide text formatting features
kirill [66]

Answer:

Home tab

Explanation:

Assuming that this question is based on providing text formatting features in Microsoft Word, this feature is found on the Home tab in the Font group or the Font dialog box. Some of these formatting features include underline style, colour, strikethrough, superscript, and subscript.

4 0
4 years ago
Other questions:
  • Which kind of software allows users to draw pictures, shapes, and other graphical images with various on-screen tools such as a
    14·1 answer
  • Write a program that asks the user for the name of a text file. the program should display the last 10 lines of the file on the
    13·1 answer
  • To add another worksheet to an Excel file, click on the _____
    15·1 answer
  • What are the functions of online gaming communities?
    12·1 answer
  • Eric is working on a computer that has a device driver error. Eric can find the name of the device driver however the actual dev
    13·2 answers
  • which of these variable declarations will the variable remain uninitialized unless it is explicitly initialized?1)Declaration of
    5·1 answer
  • In a well-developed paragraph - using domain-specific vocabulary and academic writing - address the following writing prompt:
    12·1 answer
  • Information that's been collected to help solve a problem is called
    10·1 answer
  • What is the purpose of criteria and constraints? How do they shape design?
    10·1 answer
  • A single access point, and the set of hosts it serves, is called a(n) ________. BSS BSSID ESS None of these
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!