- 1

i can't find the mistake in this code

someone, can help me, finding the mistake in this code. Because when I run the code only print 'No disponible' def leer(): n=int(input()) carro=[] for x in range(n): valor = [int(x) for x in list(input() .split())] carro.append(valor) return carro def formula(carro): seleccion=[] for x in range(len(carro)): if (carro[x][0]<=2005 and carro[x][1]<=950 and carro[x][2]>=702 and carro[x][3]<=1600): seleccion.append(carro[x][4]) if len(seleccion)==0: print('NO DISPONIBLE') else: for x in seleccion: print(x) carros = leer() formula(carros)

13th Jun 2021, 11:49 PM
Diana Miranda
Diana Miranda - avatar
1 Antwort
0
I think , It's depends your input... What is the input which you are trying...?
14th Jun 2021, 11:58 AM
Jayakrishna 🇮🇳