Can someone please explain this , I'm getting wrong answer , the correct answer is 6 . please explain how ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can someone please explain this , I'm getting wrong answer , the correct answer is 6 . please explain how ?

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

16th Aug 2020, 3:47 PM
Alpa
Alpa - avatar
1 Answer
+ 1
Thank you 😊
20th Sep 2020, 10:35 AM
Alpa
Alpa - avatar