• Kurse
  • Code Compiler
  • Diskutieren
  • Preise
  • Teams
Menu
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)

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

Häufig solche Fragen?

Effizienter lernen, kostenlos:

  • Einführung in Python

    7.1M Lernende

  • Einführung in Java

    4.7M Lernende

  • Einführung in C

    1.5M Lernende

  • Einführung in HTML

    7.5M Lernende

Alle Kurse anzeigen
Heute heiß
Hi help me I am new
1 Votes
Why are there like 10 community-made lessons?
0 Votes
How do I solve all test cases for popsicles problem?https://www.sololearn.com/coach/3?ref=app
0 Votes
Why so many mathematical questions in challenges?
0 Votes
Where can I learn c#
0 Votes
Question to sololearn
1 Votes
What should i do
0 Votes
DBA for finalist university student projects
0 Votes
Backend Hosting Service
0 Votes
how can I talk to you?I need a friend and mentor?
0 Votes