Загрузка...

Python has a secret trick…You can access list items from the end using negative indexing. #coding

Day 23 of learning Python.
Today we learn Negative Indexing in Python Lists.
Normally indexing starts from 0.
But Python also allows negative indexes to access elements from the end of a list.
Example: -1 → Last item
-2 → Second last item
Follow the series to learn Python daily.
Python has a secret trick…
You can access list items from the end using negative indexing.
Learn Python step by step with me 🚀
#python
#learnpython
#pythonforbeginners
#coding
#programming
#pythonshorts
#codingforbeginners
#pythontutorial

Видео Python has a secret trick…You can access list items from the end using negative indexing. #coding канала thezeoh
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять