Skip to content Skip to sidebar Skip to footer

Python Output

I wrote a new function and when I execute it, I get an error: Ok so here is my code: def add(x, y): z = x / y * 100 retur

Solution 1:

That's not a runtime error, you printed a function

print(read_grades)

Try calling it instead

read_grades() 

And you override your function here

read_grades = save.read()

So, advice is to not use variable names that conflict with your function names

Post a Comment for "Python Output"