menu
Qamnty
Login
Register
My account
Edit my Profile
Private messages
My favorites
How would i do this in python? Create a program called Lab3B1 that will do the following • Ask the user to enter an unknown set of integers, and stop when they enter 9999 • Add …
Ask a Question
Questions
Unanswered
Tags
Ask a Question
How would i do this in python? Create a program called Lab3B1 that will do the following • Ask the user to enter an unknown set of integers, and stop when they enter 9999 • Add …
asked
Jun 3, 2022
169k
views
5
votes
How would i do this in python?
Create a program called Lab3B1 that will do the following
• Ask the user to enter an unknown set of integers, and stop when they enter 9999
• Add up all the even numbers.
• After the loop, print the sum of the even numbers with a label.
--------------
This is what I have so far:
data = input("Enter a number or enter 9999 to stop: ")
total=0
while data != "":
number=int(data)
total+= number
data=input("Enter a number or enter 9999 to stop: ")
if data == '9999':
break
Computers & Tech
college
Gzim
asked
by
Gzim
7.9k
points
answer
comment
share this
share
0 Comments
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
3
votes
Answer: following instructions
Explanation: thats how you figure things out
Aman Aggarwal
answered
Jun 8, 2022
by
Aman Aggarwal
8.3k
points
ask related question
comment
share this
0 Comments
Please
log in
or
register
to add a comment.
← Prev Question
Next Question →
Related questions
asked
Oct 7, 2021
192k
views
Animals = ['aardvark', 'anteater', 'antelope', 'albert'] >>>animals[9999] Help, my teacher wants to me to explain what the output is and why for this python code, but I really don't know what to do for
Shavana
asked
Oct 7, 2021
by
Shavana
8.1k
points
Computers & Tech
high-school
1
answer
4
votes
192k
views
asked
Mar 11, 2023
171k
views
is "a dog" smaller or larger than "a mouse"? is 9999+8888 smaller or larger than 100*100? replace the plus sign in the following code to let python check it for you and then answer.
KItis
asked
Mar 11, 2023
by
KItis
8.5k
points
Computers & Tech
high-school
1
answer
4
votes
171k
views
asked
Feb 23, 2024
210k
views
Consider the function f(x) = x^2–4 / x-2 (a) Fill in the following table of values for f(x): X= 1.9 1.99 1.999 1.9999 2.0001 2.001 2.01 2.1 f(x) = = 3.9 3.99 3.999 3.9999 4.0001 4.001 4.01 4.1 (b) Based
Nicolae Dascalu
asked
Feb 23, 2024
by
Nicolae Dascalu
7.9k
points
Mathematics
high-school
1
answer
3
votes
210k
views
Ask a Question
Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.
Categories
All categories
Mathematics
(3.7m)
History
(955k)
English
(903k)
Biology
(716k)
Chemistry
(440k)
Physics
(405k)
Social Studies
(564k)
Advanced Placement
(27.5k)
SAT
(19.1k)
Geography
(146k)
Health
(283k)
Arts
(107k)
Business
(468k)
Computers & Tech
(195k)
French
(33.9k)
German
(4.9k)
Spanish
(174k)
Medicine
(125k)
Law
(53.4k)
Engineering
(74.2k)
Other Questions
“What does it mean when we “rework” copyrighted material?”
The book shows how to add and subtract binary and decimal numbers. However, other numbering systems are also very popular when dealing with computers. The octal (base 8) numbering system is one of these.
Seven basic internal components found in a computer tower
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy
Search Qamnty