subject

How do you prevent a while loop from becoming an infinite loop? How could internal documentation improve this program?
x = 90
a = 37
c = x/a
print(c)
You learned in this unit that Python requires your syntax to be strictly correct. For example, if you don’t indent a line after an if statement, your program will crash, and you will get an error message. Why do you think Python is designed with such strict rules? Would it be better if Python were more flexible? Why or why not?
Consider this program:
flavors = ["mild", "medium", "hot", "extra hot"]
choice = int(input("How many options do you want?"))
for i in range(choice):
print("You can order", flavors[i])
Can you anticipate a situation in which this program will crash? What could you do to prevent that situation from happening?
You learned in this lesson that you can use negative index numbers to access list items starting at the end of the list. In what situations might this be useful?

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:00
What are two of the most common reasons that peolpe who need mental health care do not access it?
Answers: 1
question
Computers and Technology, 22.06.2019 17:30
Ou listened to a song on your computer. did you use hardware or software?
Answers: 2
question
Computers and Technology, 22.06.2019 22:40
Write a program that defines symbolic names for several string literals (chars between quotes). * use each symbolic name in a variable definition. * use of symbolic to compose the assembly code instruction set can perform vara = (vara - varb) + (varc - vard); ensure that variable is in unsigned integer data type. * you should also further enhance your symbolic logic block to to perform expression by introducing addition substitution rule. vara = (vara+varb) - (varc+vard). required: debug the disassembly code and note down the address and memory information.
Answers: 3
question
Computers and Technology, 23.06.2019 12:40
Curriculum exam to process a resident's payment, you must click on onesite payments home page. from the a. reports b. my settings o c.transactions o d. rent tab
Answers: 1
You know the right answer?
How do you prevent a while loop from becoming an infinite loop? How could internal documentation im...
Questions
Questions on the website: 13722367