Find the error and output | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
0

Find the error and output

def gfg(x,l=[]): for I in range(x): l.append(i*i) print(l) gfg(2) gfg(3,[3,2,1]) gfg(3)

4th Apr 2020, 3:05 AM
Model Pilot
Model Pilot - avatar
1 Respuesta
0
Correct your line 2 I=i
4th Apr 2020, 4:46 AM
Tricker