mirror of
https://github.com/satwikkansal/wtfpython
synced 2024-11-23 11:34:24 +01:00
f25156107b
- Use new structure for code blocks in README
20 lines
261 B
Python
20 lines
261 B
Python
# 1
|
|
assert id("some_string") == id("some" + "_" + "string")
|
|
assert id("some_string") == id("some_string")
|
|
|
|
# 2
|
|
a = "wtf"
|
|
b = "wtf"
|
|
assert a is b
|
|
|
|
a = "wtf!"
|
|
b = "wtf!"
|
|
assert a is b
|
|
|
|
# 3
|
|
a, b = "wtf!", "wtf!"
|
|
assert a is b
|
|
|
|
a = "wtf!"; b = "wtf!"
|
|
assert a is b
|