Convert For loop instead of While loop

前端 未结 0 1986

Re-write the following function with a For loop instead of While loop

x = 0
y = 1
while x<8:
  while y<5:
    print(x, y)
    y+=1
    x+=2

The answer          


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