Question: 1. Consider the following Python program, which uses a nested loop: for x in 12, 4, 6]: for y in range(1, x): print(x + y)
1. Consider the following Python program, which uses a nested loop: for x in 12, 4, 6]: for y in range(1, x): print(x + y) print (x, y) Copy the table shown below into your text file for this problem, and complete it (adding rows as needed) to show how the variables change over time and the values that are printed x range (1, x)Y I value prir I1 3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
