We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abdfbac commit a6fd8e4Copy full SHA for a6fd8e4
standard_lib/README.md
@@ -33,6 +33,7 @@ A collection of useful snippets using only the standard library.
33
| hash_file | Hash a file using built-in packages |
34
| hex_decode | Get bytes-like string from hex |
35
| human_readable_bytecode | Print the bytecode representations in a human readble format |
36
+| iterable_unpacking | Unpack an iterable and assigns its elements to multiple variables |
37
| keep_metadata_on_decorator_usage | Keep functions metadata after decoration |
38
| list_unpacking | Unpacking a list using the `*` operator |
39
| max_int_in_list_of_str | Get the largest number from a list of strings |
standard_lib/iterable_unpacking.py
@@ -0,0 +1,5 @@
1
+numbers = [1, 2, 3]
2
+x, y, z = numbers
3
+print(x)
4
+print(y)
5
+print(z)
0 commit comments