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.
5858| regular_expression_debug | Display debug information about the compiled regular expression with re.DEBUG flag |
5959| remove_duplicates_list | Remove duplicates from list and keep the order |
6060| remove_elements_list | Remove elements not matching certain pattern - the fast way! |
61+ | reverse_iterables | Reverse an iterable using ` reversed() ` |
6162| save_dict_update_without_loosing_original | Update dict value without loosing original value |
6263| scopes_namespaces | Reveils the differences between ` global ` , ` local ` , and ` nonlocal ` |
6364| 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