[issue42459] Wrong Output
Yurii Karabas
report at bugs.python.org
Wed Nov 25 04:09:20 EST 2020
Yurii Karabas <1998uriyyo at gmail.com> added the comment:
There is a little error in your code, it should look like this:
```
def test(sum):
return int(sum)
if test(10) == 10:
print("Yes")
else:
print("No")
```
Basically `if sum == 10:` will compare builtin function sum with int value.
This isn't an issue we can close it.
----------
nosy: +uriyyo
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42459>
_______________________________________
More information about the Python-bugs-list
mailing list