subject

Consider the following code:
a) num = int(input("enter a number, negative to stop"))
b) while (num > = 0):
print ("you entered: " + str(num))
c) num = int(input("enter a number, negative to stop"))
print ("done.")
what is wrong?
d) the num > = 0 test condition is not correct
there is nothing wrong with the code.
the line num = int(input("enter a number, negative to stop")) should be indented so it is inside the loop
e) there should not be a : after the while (num > = 0)

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 07:00
Idon understand these and need some ! ?
Answers: 2
question
Computers and Technology, 23.06.2019 09:00
Which company provides a crowdsourcing platform for corporate research and development? a: mtruk b: wiki answers c: mediawiki d: innocentive
Answers: 2
question
Computers and Technology, 23.06.2019 10:00
Install and use wireshark program ( send back screen shots and other vital information) case project 3-2: decode a tcp segment in a wireshark capture in this chapter, you walked through tcp segment to interpret the data included in its header. in this project, you use wireshark to capture your own http messafes, examine the tcp headers, and practice interpreting the data you'll find there. 1. open wireshark and snap the window to one side of your screen. open a browser and snap that window to the other side of your screen so you can see both windows.
Answers: 2
question
Computers and Technology, 24.06.2019 17:00
The length of time that a slide appears before automatically advancing to the next slide can be set in the timing group under the transitions tab. transition to this slide group under the transitions tab. timing group in the master slide view. transition to this slide group in the master slide view.
Answers: 1
You know the right answer?
Consider the following code:
a) num = int(input("enter a number, negative to stop"))
b)...
Questions
question
English, 15.12.2020 14:00
question
Mathematics, 15.12.2020 14:00
question
Mathematics, 15.12.2020 14:00
question
Chemistry, 15.12.2020 14:00
question
Mathematics, 15.12.2020 14:00
question
Chemistry, 15.12.2020 14:00
Questions on the website: 13722362