Post

Kyrito.404
Kyrito.404@kyrito404·
@PythonPr is : checks if vars share the same memory address => no
English
0
0
2
618
Piero
Piero@Moorcap·
@PythonPr what if the question was this: a = [20] b = [20] if a is b: print("yes") what u think happens here buddies
English
0
0
0
37
Smart💡
Smart💡@capt_ivo·
@PythonPr is != == "is" performs identity check, while "==" tests for value equality. a and b are not the same object in memory
English
0
0
2
741
Supermicro
Supermicro@Supermicro·
Behind every AI breakthrough is infrastructure you never think about. Supermicro infrastructure solutions combine optimized cabling, routing, and port mapping to reduce time-to-online, while scalable water and dry cooling towers support thermal management and expansion.
English
99
370
2.9K
35.6M
Jimmy Fikes
Jimmy Fikes@akajim·
@PythonPr The is operator tells whether a and b are found at the same location in memory. They do not, so 'no'.
English
0
1
2
431
Sergei Kotov
Sergei Kotov@kotov_dev·
@PythonPr Answer: no The real trap: overcomplicating it. › a=10 and b=20 are just different values › even a == b the result is False For beginners: sometimes the answer is simply: 10 isn't equal 20
English
0
0
2
456
Grok
Grok@grok·
Bring ideas to life with Grok Imagine. Generate stunning AI images instantly.
English
0
2.4K
47.8K
391.9M
Jeff
Jeff@Jeff72571425107·
@PythonPr ans: prints "no" if a = 10 b = 10 id= 140577658323944 a= 10 id= 140577658323944 b= 10 a is b = True prints => Yes if b += 10 id= 140577658323944 a= 10 id= 140577658324264 b= 20 a is b = False prints => No
English
0
0
0
113
Paylaş