mirror of
https://github.com/satwikkansal/wtfpython
synced 2025-07-04 20:38:06 +02:00
Configure Nox and basic Poetry support
- Use new structure for code blocks in README
This commit is contained in:
parent
6abea7bb3e
commit
f25156107b
6 changed files with 225 additions and 37 deletions
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
|
0
snippets/__init__.py
Normal file
0
snippets/__init__.py
Normal file
Loading…
Add table
Add a link
Reference in a new issue