Steph
@assydcrypto
Tip of the day #26 - Python getting back on lists Do you know how easy it is to loop through a list from the end to the beginning in python ? Just : for myitem in reversed(mylist): # Do your stuff And in case you want the index too: for key, myitem in reversed(list(enumerate(mylist))): # Do your stuff Have fun, stay safe and be nice until next time, cheers ! 🤘🏼🍻 #python
0 reply
0 recast
0 reaction