Question: In Exercises 9 through 12, identify the errors. 9. q = 1 while q > 0: q = 3 * q - 1 print(q) 11.

In Exercises 9 through 12, identify the errors.

9.

q = 1

while q > 0: q = 3 * q - 1 print(q)

11.

## Display the elements of a list. 
list1 = ['a', 'b', 'c', 'd'] i = 0 while i < (len(list1) - 1): i += 1 print(list1[i])

In Exercises 13 and 14, write a simpler and clearer code that performs the same task as the given code.

13.

name = input("Enter a name: ") print(name) name = input("Enter a name: ") print(name) name = input("Enter a name: ") print(name)

Temperature ConversionsWrite a program that displays a Celsius-to-Fahrenheit conversion table. Entries in the table should range from 10 to 30 degrees Celsius in increments of 5 degrees. See Fig. 3.25. Note:The formula f=(95c)+32f=(95c)+32 converts Celsius degrees to Fahrenheit degrees.

Celsius Fahrenheit 10 50 15 59 20 68 25 77 30 86

FIGURE 3.25 Outcome of Exercise 15.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!