Nov-24-2020, 02:08 PM
I find out to pack it into list and then unpack using loop, but to be honest I do not like it, do you have any sugesstions?
def oddNumbers(l=1, r=7): # Write your code here lista = [] for x in range(l, r): if x % 2 == 0: pass else: lista.append(x) return lista arr = oddNumbers() for i in arr: print(i)