Ah, OK
they complain because we use
they complain because we use
my_sum
also inside the function and their check "thinks" it is hardcodeddef adds_numbers(x, y): return x + y my_sum = adds_numbers(10, 31) print(my_sum)or just use different name inside the function
def adds_numbers(x, y): result = x + y return result my_sum = adds_numbers(10, 31) print(my_sum)
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs