Find the error and output | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
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 Réponse
0
Correct your line 2 I=i
4th Apr 2020, 4:46 AM
Tricker