This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Wrong Output
Type: behavior Stage: resolved
Components: Windows Versions: Python 3.8
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: Kshitish, paul.moore, steve.dower, steven.daprano, tim.golden, uriyyo, zach.ware
Priority: normal Keywords:

Created on 2020-11-25 08:55 by Kshitish, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
PROVE.jpg Kshitish, 2020-11-25 08:55 Please check the image for better understanding
Messages (3)
msg381797 - (view) Author: Nishant Gautam (Kshitish) * Date: 2020-11-25 08:55
The Python language  does not the program
msg381800 - (view) Author: Yurii Karabas (uriyyo) * (Python triager) Date: 2020-11-25 09:09
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.
msg381801 - (view) Author: Steven D'Aprano (steven.daprano) * (Python committer) Date: 2020-11-25 09:15
That is the correct output.

Kshitish, Python is a mature language (about 30 years old) used by tens or hundreds of thousands of people every day. Did you believe that you were the only person who noticed that Python cannot even run `if...else` statements correctly?

This is not a help desk for beginners having trouble with their code. There are many places you can ask for help, like Reddit's r/learnpython, or Stackoverflow, or the tutor mailing list:

https://mail.python.org/mailman/listinfo/tutor

There are various Python IRC channels or Discuss, if you google you will soon find them. There are thousands of people happy to help you learn. This bug tracker is not the right place.

99.999% for sure, every "bug" you find will be your misunderstanding of the code, not a bug in the language, just like the previous one: #42456 (also not a bug).

Also, please stop posting screen captures. Python code is text, and we don't edit in Photoshop. Copy the relevant text and paste it into your bug reports. Screen captures are inconvenient for us if we have to run your code, and they make it difficult or impossible for blind and visually impaired developers to take part.
History
Date User Action Args
2022-04-11 14:59:38adminsetgithub: 86625
2020-11-25 09:15:25steven.dapranosetstatus: open -> closed

type: crash -> behavior

nosy: + steven.daprano
messages: + msg381801
resolution: not a bug
stage: resolved
2020-11-25 09:09:20uriyyosetnosy: + uriyyo
messages: + msg381800
2020-11-25 08:55:15Kshitishcreate