File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ A collection of useful snippets using only the standard library.
58
58
| regular_expression_debug | Display debug information about the compiled regular expression with re.DEBUG flag |
59
59
| remove_duplicates_list | Remove duplicates from list and keep the order |
60
60
| remove_elements_list | Remove elements not matching certain pattern - the fast way! |
61
+ | reverse_iterables | Reverse an iterable using ` reversed() ` |
61
62
| save_dict_update_without_loosing_original | Update dict value without loosing original value |
62
63
| scopes_namespaces | Reveils the differences between ` global ` , ` local ` , and ` nonlocal ` |
63
64
| set_union_intersection | Use \| and & for set union and intersection |
Original file line number Diff line number Diff line change
1
+ names = ["Lea" , "Mario" , "Nicole" ]
2
+
3
+ for name in reversed (names ):
4
+ print (name )
You can’t perform that action at this time.
0 commit comments