Mar-31-2017, 01:05 AM
I'm fairly new to using python. I would greatly appreciate it if someone could explain exactly what i'm supposed to do here.
Create the following lists or arrays as the input:
A = [1, 2]
B = [3, 4]
I want the following output
1, 3
1, 4
2, 3
2, 4
Shown in the actual program the top part is the input, and the bottom part is the output.
The question is what kind of loop or series of loops will produce this kind of output?
Notice how the left side (1, and 2) are different than the right side (3, 4 then 3, 4)
Create the following lists or arrays as the input:
A = [1, 2]
B = [3, 4]
I want the following output
1, 3
1, 4
2, 3
2, 4
Shown in the actual program the top part is the input, and the bottom part is the output.
The question is what kind of loop or series of loops will produce this kind of output?
Notice how the left side (1, and 2) are different than the right side (3, 4 then 3, 4)