Printing out a return value of a range() inside a def function

后端 未结 0 958
闹比i
闹比i 2021-02-01 21:04
def ZweierschrittDiff(x, y):
    if x < y:
        for n in range(x, y, 2):
            print(n)
    elif x > y:
        for n in range(x, y, -2):
            prin         


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