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...
Sur cette page du site, vous pouvez voir la vidéo en ligne 01.3 Print or retrieve last item in list - Python List Exercises Tutorial Interactive durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur 4Geeks Academy 22 avril 2020, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 771 fois et il a aimé 5 téléspectateurs. Bon visionnage!