The first item in a list is always at the position 0, the last item its always at position length - 1 like this:
last_position = len(my_list)-1
This video is a part of the Python Interactive List exercise tutorial, you can access the entire tutorial here:
https://breatheco.de/interactive-exer...
📢 Follow me here and on twitter @alesanchezr for free coding courses and tutorials like this.
For more interactive tutorials like this go to:
https://breatheco.de/interactive-exer...
Nesta página do site você pode assistir ao vídeo on-line 01.3 Print or retrieve last item in list - Python List Exercises Tutorial Interactive duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário 4Geeks Academy 22 Abril 2020, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 771 vezes e gostou 5 espectadores. Boa visualização!