Login
Remember
Register
Ask a Question
What is the output of following code −
0
votes
asked
Sep 4, 2021
in
Python
by
SakshiSharma
What is the output of following code −
[ (a,b) for a in range(3) for b in range(a) ]
1) [ (1,0),(2,1),(3,2)]
2) [ (0,0),(1,1),(2,2)]
3) [(1,0),(2,1),(2,1)]
4) [ (1,0),(2,0),(2,1)]
python-mcq
Python-questions-answers
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Sep 4, 2021
by
SakshiSharma
4) [ (1,0),(2,0),(2,1)]
...