Skip to content
  • Tutorials
    • c programming
      • libraries
    • c++
    • Linux
    • Python
    • batch programming
    • Technology
  • IDE
  • Tools
parcourir une liste par la fin python 1

parcourir une liste par la fin python

May 10, 2022 by Anurag batra
for elt in lst[::-1]:
    print(elt)

Here is what the above code is Doing:
1. We create a list of integers from 1 to 10.
2. We iterate through the list in reverse order.
3. We print each element in the list.

Categories Python Examples
Post navigation
how to run different python version
@transactional annotation
© MyEduKit - 2022 . All Rights Reserved.