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
Vlad [161]
3 years ago
9

What am I doing wrong?

Computers and Technology
1 answer:
Temka [501]3 years ago
8 0

In your example, you're asking the user for a number and then you're setting total and nums equal to zero. This results in your first number being ignored by the program. I included the complete working code below:

num = int(input("Enter a number: "))

total = num

nums = 1

while (total <= 100):

   num = int(input("Enter a number: "))

   nums = nums + 1

   total = total + num

print("Sum: "+str(total))

print("Numbers Entered: "+str(nums))

I hope this helps!

You might be interested in
What are possible consequences for cyberbullying?
BaLLatris [955]

Answer:

Possible consequences for cyber bullying include depression, isolation and illness

Explanation:

The reason for this is when a person is hurt there body tends to go through things to make them feel a certain way about things.

3 0
3 years ago
Read 2 more answers
The computer can sometimes generate an after processing takes place
Elina [12.6K]

Answer:

<h2> CPU is the answer......</h2>

7 0
3 years ago
On tablets and smartphones, what feature can be used that can erase the contents of the device if lost or stolen?
Artemon [7]
You could use the ADM website from a computer or any other device (that is not missing)
 <span />
4 0
3 years ago
A network administrator is using packet tracer to mock up a network that includes iot devices. What can the administrator do fro
Vikki [24]

Answer:

give some instructions for iot device

Explanation:

on how to go about something that you would be able to control physically

6 0
3 years ago
Technical colleges offer certification in audio engineering through programs that are normally from 2 to 6 months long.
Murrr4er [49]

Answer:

False

Explanation:

i said so

8 0
3 years ago
Other questions:
  • What is a method whereby new problems are solved based on the solutions from similar cases solved in the past?
    9·1 answer
  • You administer a Microsoft SQL Server database that supports a banking transaction management application. You need to retrieve
    5·1 answer
  • What is the best explanation for why digital data is represented in computers in binary?
    10·1 answer
  • PLEASEEE HELPPP
    7·1 answer
  • Compute change
    15·1 answer
  • Anyone have gmetrix week 2 quiz?
    15·2 answers
  • GMI = $4,666.67 Total Monthly Deductions $1,131.00 What is the Net Monthly Income (GMI - Total Monthly Deductions) =
    9·1 answer
  • As you explore career options why is it important to take personal inventories and assessments
    5·2 answers
  • (b) A mouse is a display device. (c) A monitor is a television.​
    10·1 answer
  • This might sound crazy! But please help.
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!