Return value in Python for Loop -
hi want return value after loop. code -
def asd(): data.append("a") data.append("b") in range(0,2): value = data[i] return value
i expecting return both , b when calling function returning b. there other method. in advance
unless have pressing reason doing things way, example can simplified
def asd(): return 'a', 'b'
Comments
Post a Comment