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...
Auf dieser Seite können Sie das Online-Video 01.3 Print or retrieve last item in list - Python List Exercises Tutorial Interactive mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer 4Geeks Academy 22 April 2020 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 771 Mal angesehen und es wurde von 5 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!