subject

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

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 03:50
Q-1 which of the following can exist as cloud-based it resources? a. physical serverb. virtual serverc. software programd. network device
Answers: 1
question
Computers and Technology, 23.06.2019 14:30
The basic work area of the computer is it screen that you when you first fire up your computer
Answers: 1
question
Computers and Technology, 23.06.2019 19:00
Whose task it is to ensure that the product flows logically from one step to another?
Answers: 3
question
Computers and Technology, 23.06.2019 19:30
What are loans to a company or government for a set amount of time
Answers: 1
You know the right answer?
How would i do this in python? Create a program called Lab3B1 that will do the following
β€’ A...
Questions
question
History, 02.08.2019 11:30
Questions on the website: 13722363