mirror of
https://github.com/satwikkansal/wtfpython.git
synced 2025-07-14 10:06:26 +02:00
Configure Nox and basic Poetry support
- Use new structure for code blocks in README
This commit is contained in:
19
snippets/2_tricky_strings.py
Normal file
19
snippets/2_tricky_strings.py
Normal file
@ -0,0 +1,19 @@
|
||||
# 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
|
Reference in New Issue
Block a user