Skip to content

Commit d518149

Browse files
✨ std_lib: chained assignments
1 parent 60469c0 commit d518149

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

standard_lib/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ A collection of useful snippets using only the standard library.
1313
| bitmask | Class that represents a bit mask |
1414
| builtins_manipulation | Illustrates the easy overriding/manipulation of built-in functions |
1515
| capture_output | Capture the output of a function generally directing to stdout |
16+
| chained_assignments | Assign a value to multiple variables using chained assignments |
1617
| check_pattern | Check for multiple string patterns |
1718
| compare_strings | Use `difflib.SequenceMatcher` to compare strings |
1819
| count_thresholds | Count the number of elements between certain thresholds |
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
x = y = z = 26
2+
print(x)
3+
print(y)
4+
print(z)

0 commit comments

Comments
 (0)