Cursos
Cursos
Compilador de CĂłdigo
Compilador de CĂłdigo
Discutir
Preços
Teams
Fazer login
Registrar
Menu
Q&A DiscussÔes
Pesquisar
Pesquisar
Faça uma pergunta
Faça uma pergunta
what is the output of def func(x): res = 0 for i in range(x): res += i return res print(func(4))?
python
-11 Votos
17 Respostas
7th Jun 2018, 2:21 PM
Saurav nalla
I don't understand, why result is 6 def func(x): res=0 for i in range(x): res+= i return res print (func (4))
python
3 Votos
16 Respostas
8th Sep 2016, 12:47 PM
Giorgi
def func(x): res = 0 for i in range(x): res += i return res print(func(7))
function-arguments
modules
0 Voto
2 Respostas
12th Aug 2020, 7:46 AM
Shubham Kumar
Function output
def
func(a)
func(x):
print(a)
x=1
0 Voto
5 Respostas
12th Feb 2020, 8:35 PM
Sinan
explanation plzzzz!!!
+=
=
0
def
for
func(x):
i
in
range(x):
res
0 Voto
2 Respostas
20th Mar 2019, 8:48 AM
Azfar
Faça uma pergunta
Faça uma pergunta
Faça uma pergunta
Faça uma pergunta
Quente hoje
Hofstadter a sequence code coach is not running
0 Votes
the code for bigneer is not really what to do after coding begeneer in sololearn
0 Votes
Input errors (python)
1 Votes
Vote Code
1 Votes
Whatâs the actual difference between MB and GB in real-world usage?
1 Votes
Without degree job
0 Votes
Script file names
0 Votes
I wanna know is that what about dot net developers in future there is possible they gonna downfall in industry
0 Votes
Je cherche des gens qui parle français pour apprendre le langage c
0 Votes
How can I add gradient to the background
1 Votes