New submission from Kshitish :
print (5 + 2 == 7 and 10 <= 1232 and 100 ^ 1000 >= 128) # Incorrect
Output: True
This argument should be false but it prints true. This is the logical error
vulnerability. Try this code in another language too. You find out they print
false becau
Kshitish added the comment:
Please do not talk like behave properly. I know here I am wrong but it is not
way to talk to some one like that. I respect your knowledge but maintain your
language. Okay!
I send you new file with full research. Please check it out and thank you
Kshitish added the comment:
Look tell why you close this
In the argument:
print (5 + 2 == 7 and 10 <= 1232 != 10 ^ 100 <= 100)
10 <= 1232 != 10 ^ 100 <= 100
10 <= 1232 is true
10 ^ 100 <= 100 is false
These two argument compares by !=
So, this statement must be true.
New submission from Kshitish :
Try & Except doesn't work probably.
In the except continue keyword doesn't work probably.
--
files: main.py
messages: 382515
nosy: blue555
priority: normal
severity: normal
status: open
title: Try and Except doesn't work properly
type
Kshitish added the comment:
for i in range(1,11):
try:
if i == i:
print(i)
if i == 5:
continue
print(i,'poc')
except:
print("Out")
Output:
1
2
3
4
5
6
7
8
9
10
As you can see the continue ke
New submission from Kshitish Kumar :
Code:
import random as ran
x = ran.shuffle(10,random=1)
Output:
DeprecationWarning: The *random* parameter to shuffle() has been deprecated
since Python 3.9 and will be removed in a subsequent version.
x = ran.shuffle(10,random=1)
File "C:\
Kshitish Kumar added the comment:
I was expecting a proper result from this code. Because If you do same thing in
other computer language. You will get a proper answer.
--
___
Python tracker
<https://bugs.python.org/issue44