0

Can somebody explain me why this is equal to 6?

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

24th Oct 2020, 4:24 PM
Gabriel Castro
Gabriel Castro - avatar
1 ответ
+ 1
thank you so much
24th Oct 2020, 5:03 PM
Gabriel Castro
Gabriel Castro - avatar