0
I’m new in this area and recently, for a college job I couldn’t turn this line of code into tuple. function code:
def encontra_impares(lista):
lis = []
if len(lista) > 0:
numero = lista.pop(0)
if numero % 2 != 0:
lis.append(numero)
lis = lis + encontra_impares(lista)
return lis
function call:
print(encontra_impares([1, 2, 3,5,5,9,7,32,1,6]))
Write a python function that takes as parameter a tuple of numbers integers. The function should return a list with the odd values of the tuple. , that’s the question
– Thiago Andrade HoocKPeeR