What do i have to change to not get 0 as an Output?

前端 未结 0 1898
清歌不尽
清歌不尽 2020-12-03 04:05
while not p == n:
    while not p1 == 0:
        sum2 = sum2 + arr[p][p1]
        p1 -= 1
        p += 1
print(sum2)

n = 3 arr= [11][2][4], [4][5]

相关标签:
回答
  • 消灭零回复
提交回复
热议问题