• Kurse
  • Code Compiler
  • Diskutieren
  • Preise
  • Teams
Menu
0

why i get 6 can someone help me

def func(x): res = 0 for i in range(x): res += i return res print(func(4))

pythoncodehelpme
16th Nov 2020, 8:07 AM
pyae phyo
pyae phyo - avatar
1 Antwort
+ 4
https://www.sololearn.com/Discuss/1797467/?ref=app
16th Nov 2020, 8:38 AM
Simba
Simba - avatar

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ß
How do we code calculator
2 Votes
How to add comment in python?
1 Votes
Engineer Cloud
1 Votes
What programming language should i learn to make applications or games?
0 Votes
Lua?
1 Votes
I need help
1 Votes
My hearts are disappering :(
0 Votes
What can html, css and javascript do
0 Votes
Ayuda para insertar la imagen de portada y las melodías a mi álbum alguien sabe cómo
0 Votes
Pressure and tension
2 Votes