i m trying to find output (dry run) of the following python list comprehension on pen and paper

前端 未结 0 584
傲寒
傲寒 2021-02-01 11:41
board=[[3*j+ i+1 for i in range(3)]for j in range(3)]
print(board)

this is what i could think of

  1. (3j+ i+1)= 30 +0+1 -> 1st
相关标签:
回答
  • 消灭零回复
提交回复
热议问题