+ 1
wrong result
why the result in this code isn't 9: def fu(x) for i in range(x): print(x) return fu(10)
2 odpowiedzi
0
Learn about how range function works .
0
First of all, you don't have a colon after def fu(x)
Second, you print x, which is the argument you passed to fu(x), i.e., you passed 10 to fu(x). So 10 assigns to x.