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
docker41 [41]
3 years ago
10

For python how do I ask the user how many numbers they want to enter and then at the ending add those numbers up together?

Computers and Technology
1 answer:
Digiron [165]3 years ago
8 0

I am not too familiar with the Python language, but the algorithm would be something like this:

1. create a variable for the sums of the number

2. read in how many numbers the user wants to enter (let's call it N)

and then create a for loop:

for N times

read in the next number

increase the sum variable by that number

Hopefully this helps!

You might be interested in
Which of the following which of the following is an advantage of using functions ​
Paha777 [63]

Answer:

kkbvvvvvvvvvvvvvvvvv'vvvkk

4 0
3 years ago
Suppose 8 people want to communicate with each other using public key encryption. The communication between any pair of them is
ludmilkaskok [199]

Answer:

The answer is "64"

Explanation:

There has been 1 Private Key 1 Public Key for every person. The private key is used for other app messages. All else uses the Public Key to encrypt messages with that user. Those keys are numerically related. Even if you have 5 users, you will be given 5 Personal keys and 5 Public keys.

  • All user will have a duplicate of other public keys, which indicates (n*n-1) copies of n public keys on different systems to make sure shared contact between all users, plus n private keys.
  • The unique key count is 2n, with n^2 distributed private and public keys on different systems.
  • 8 people,  where 8 is a number, that is equal to n so, n^2 = 8^2 =8 \times 8 = 64
5 0
3 years ago
The algorithm for solving the problem of average of five (5) numbers​
PilotLPTM [1.2K]

Answer:

Explanation:

Denote the five numbers as a, b, c, d and e.

The average is:

(a + b + c + d +e) ÷ 5.

Easily:

Learn how to do input and output operations in your programming language of choice.

Learn what average is (see Arithmetic mean - Wikipedia)

Learn how to code arithmetic operations in your PL of choice.

Put all that together and code the program.

Oh, did you expect the code snippet? Sorry, I don’t do peoples’ homework for them on principle. Homework is for you to learn something. If you can’t be bothered, accept that you’ll fail your class. If you want to pass, LEARN.

3 0
3 years ago
Winds can occur due to unequal heating within the atmosphere true or false?​
spin [16.1K]
True
Sorry if it’s wrong need to answer some before asking a question
7 0
4 years ago
Compare using a compiler with using an interpreter to translate high-level programming code
uranmaximum [27]
You can translate high level programming code by using java script.
6 0
3 years ago
Read 2 more answers
Other questions:
  • Which best explains the process he would follow?​
    13·1 answer
  • Network and web0based software used for workplace collaboration is commonly called?
    11·1 answer
  • The ________ of the operating system enables the user to communicate with the computer system. Select one:
    9·1 answer
  • What is the final value of the string output given the following code fragment? int counter = 0; int num = 0; string output = ""
    7·1 answer
  • Late at night, some traffic signals change patterns and become _____.
    9·2 answers
  • Which of the following terms best describes the product development process?
    8·1 answer
  • What is troubleshooting?
    10·2 answers
  • What's the name of the file mainly used to save power point
    7·2 answers
  • Would a sim card(activated) be able to function on any phone regardless of the companies carrier?
    7·1 answer
  • Which is the best reason for why it is important to be careful about entering personal information online?
    10·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!