[issue42459] Wrong Output

2020-11-25 Thread Steven D'Aprano
Steven D'Aprano added the comment: 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

[issue42459] Wrong Output

2020-11-25 Thread Yurii Karabas
Yurii Karabas <1998uri...@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

[issue42459] Wrong Output

2020-11-25 Thread Nishant Gautam
New submission from Nishant Gautam : The Python language does not the program -- components: Windows files: PROVE.jpg messages: 381797 nosy: Kshitish, paul.moore, steve.dower, tim.golden, zach.ware priority: normal severity: normal status: open title: Wrong Output type: crash