Consider the following code:
a) num = int(input("enter a number, negative to stop"))
b)...
![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 02.11.2019 06:31 ewinter13
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](/tpl/images/cats/User.png)
Answers: 3
![](/tpl/images/ask_question.png)
![](/tpl/images/ask_question_mob.png)
Another question on Computers and Technology
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 00:50
Representa os dados de um banco de dados como uma coleç? o de tabelas constituÃdas por um conjunto de atributos, que definem as propriedades ou caracterÃsticas relevantes da entidade que representam. marque a alternativa que representa o modelo descrito no enunciado. escolha uma:
Answers: 3
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 15:30
The processing of data in a computer involves the interplay between its various hardware components.
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 18:30
Report all segments of identity by descent longer than 20 polymorphisms between pairs of individuals in the following cohort of 15 individuals across 49 polymorphisms: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 numeric input 2 points possible (graded) you have 2 attempts to complete the assignment below. for example if the sequence is "bcd", which occurs in "abcdef" , the starting point would be 2 (b), and the finishing point would be 4(d). individuals 7,10 between positions
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 24.06.2019 10:00
Which feature of a blog to restore and retrieve older post
Answers: 3
You know the right answer?
Questions
![question](/tpl/images/cats/fizika.png)
Physics, 05.03.2021 20:20
![question](/tpl/images/cats/ap.png)
Advanced Placement (AP), 05.03.2021 20:20
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/ekonomika.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 05.03.2021 20:20
![question](/tpl/images/cats/mat.png)
Mathematics, 05.03.2021 20:20
![question](/tpl/images/cats/biologiya.png)
Biology, 05.03.2021 20:20
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 05.03.2021 20:20
![question](/tpl/images/cats/mat.png)
Mathematics, 05.03.2021 20:20
![question](/tpl/images/cats/mat.png)
Mathematics, 05.03.2021 20:20
![question](/tpl/images/cats/biologiya.png)
![question](/tpl/images/cats/fizika.png)
![question](/tpl/images/cats/ekonomika.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 05.03.2021 20:20
![question](/tpl/images/cats/en.png)
English, 05.03.2021 20:20
![question](/tpl/images/cats/obshestvoznanie.png)
Social Studies, 05.03.2021 20:20
![question](/tpl/images/cats/fizika.png)
Physics, 05.03.2021 20:20
![question](/tpl/images/cats/biologiya.png)
Biology, 05.03.2021 20:20