- 1
What am I getting wrong here
def func (x): res = 0 for i in range (x): res += i return res print(func(4))
5 Réponses
+ 1
Thank you,i will ,bult and run again!
0
Thank you so much,your answer is correct!
0
Ifeanyichukwu Elochukwu
Then why did you say you are getting wrong?
0
It was not running on my IDE,it was giving me errors. Tried several times to debug but still the same thus in was stucked!
- 1
Ifeanyichukwu Elochukwu
Output is 6. What you expect?