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...
На этой странице сайта вы можете посмотреть видео онлайн 01.3 Print or retrieve last item in list - Python List Exercises Tutorial Interactive длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь 4Geeks Academy 22 Апрель 2020, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 771 раз и оно понравилось 5 зрителям. Приятного просмотра!