else: 23 24 complete.') 25 print('Not all systems are ready') Ira, and Kendra are all saying it would be better to move lines 22 and 24 to a single line executing just before line 21. These print ('Code complete.') three students have different reasons for their opinions. Their reasons are below. Do you think each of them is right, wrong, or somewhere in between? Explain. Ira: would be better to have a single print statement because that code is going “It to happen no matter what. The program will run slower by having it there twice.” Jayla: would be better to have a single print statement because that code is “It going to happen no matter what. Later, if you want to change your program, you’re going to have to remember to change it in two places the way the code is now.” Kendra: would be better to have a single print statement because it is going to “It happen no matter what. That program would take up less memory if you just wrote it once.”
23 24 25 else: complete.') print('Not all systems are ready') Ira, and Kendra are all saying it would be better to move lines 22 and 24 to a single line executing print ('Code complete.') just before line 21. These three students have different reasons for their opinions. Their reasons are below. Do you think each of them is right, wrong, or somewhere in between? Explain. Ira: “It would be better to have a single print statement because that code is going to happen no matter what. The program will run slower by having it there twice.” Jayla: “It would be better to have a single print statement because that code is going to happen no matter what. Later, if you want to change your program, you’re going to have to remember to change it in two places the way the code is now.” Kendra: “It would be better to have a single print statement because it is going to happen no matter what. That program would take up less memory if you just wrote it once.”
1.3.3.A.AK%20BranchingAndOutput.docx