Question: Question 7 1 pts Why does the following program produce an error message? for i in range(3.7); print(j) You need to select All correct answers.
Question 7 1 pts Why does the following program produce an error message? for i in range(3.7); print(j) You need to select All correct answers. Because we loop over the variable and then we try to print the variable "j" This would work if the change thej to i. This would work if the change the i to j. This would work if the change the i toj and also the toi. This would work for any variable name, as long as the name of the variable in the "for line equals the name in the print statement. Question 7 1 pts Why does the following program produce an error message? for i in range(3.7); print(j) You need to select All correct answers. Because we loop over the variable and then we try to print the variable "j" This would work if the change thej to i. This would work if the change the i to j. This would work if the change the i toj and also the toi. This would work for any variable name, as long as the name of the variable in the "for line equals the name in the print statement
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
