[solved] – Question 93273
What is the value of pairs after the following assignment?
pairs = [ (x,y) for x in range(3,0,-1) for y in range(2,0,-1) if (x+y)%3 == 0 ]
Expert Answer
OR
What is the value of pairs after the following assignment?
pairs = [ (x,y) for x in range(3,0,-1) for y in range(2,0,-1) if (x+y)%3 == 0 ]
OR