Question: 1. Write three lines of code, each with a different error. Then, explain how to fix each one. 2. Is there an error in

  1. 1. Write three lines of code, each with a different error. Then, 

1. Write three lines of code, each with a different error. Then, explain how to fix each one. 2. Is there an error in this program? If so, what is it, what type is it, and how would you fix it? def sum(num1, num2): return num1 + num2 print(sum("four", "five")) 3. What is wrong with this program, which will be part of an exercise app, and how would you fix it? print("Next, we'll do four push-ups.") for i in range(4): print("Do push-up #", i) 4. Describe five items that you would put into a software requirements specification if you were hiring someone to design an app to help museum visitors have a better experience. 5. Identify five errors in this program, which is supposed to take the average (mean) of three numbers: define average(one, two, three): avg one + two * three return aver print("The average of 6, 7, and 8 is:," average(6, 7, 8))

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

1 Code with error printHello world Error Missing closing quotation mark Fix printHello world Code with error x 5 y 10 Error Missing comma or semicolon ... View full answer

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 Operating System Questions!