Which one is right | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

Which one is right

k = (1,) j = (1,) print(j is k) in some ides like sublime text it is giving True but in some others it is giving False which one is true and why the other one is giving incorrect output

11th May 2020, 11:30 AM
Bhavuk Sharma
Bhavuk Sharma - avatar
2 Respostas
0
There is no chance for false here because both are identical . I tried in my ide also . can you mentione the name of Ide in which it is shown false
11th May 2020, 11:42 AM
Ayush Kumar
Ayush Kumar - avatar
0
O yes I got it the difference. Thanks you to lot šŠš¢š¢š›šØ š†š”ššš²ššš„ . And sorry for my wrong information
11th May 2020, 12:54 PM
Ayush Kumar
Ayush Kumar - avatar