Answer to Question #228934 in Python for PONNAPALLI VAMSI

Question #228934

What is the value of pairs after the following assignment?

pairs = [ (x,y) for x in range(5,1,-1) for y in range(4,1,-1) if (x+y)%3 == 0 ]
1
Expert's answer
2021-08-24T01:54:57-0400
[(5,4)(4,2)(3,3)(2,4)]

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS