ChatCrawlerпоиск по публичному Telegram Открыть приложение
3

30 Days Of Python

29 июля 2021
2021-07-29×
29 июля 2021
Фотография
нажмите — покажем
Фотография
нажмите — покажем
A
I guess after removing first element loop is getting ended..
A
I don't want to create newlist ...
A
I think pop will work but I'm curious how this code is working ...after removing first element last element would be shifted to second last and loop will not check this.......
ACPI don't want to create newlist ...
You don't have to Just iterate through the list and keep track of your index number, when you take an element off the list, the list gets smaller, so your next element is the same index as the last, so you don't increase the index after using the pop function. The index is so you can tell your pop function where the element is
A
I think last element would never be checked ......if perform remove method on duplicate members of list
Фотография
нажмите — покажем
See the application of remove, even without a loop
B
Фотография
нажмите — покажем
Here Dhirendra
Got it .. can make last element 4
Фотография
нажмите — покажем
It worked, I guess it's cause they're following eachother
B
Фотография
нажмите — покажем
When they follow eachother the loop terminates
A
Фотография
нажмите — покажем
Фотография
нажмите — покажем
When the number follow each other, the last one is not taken into account
Interestingly I had this issue long back with my code that time I had avoided remove method ...
A
It's good to know ...
A
Фотография
нажмите — покажем
Who has nostalgia of this image
Календарь: июль 2021
ПнВтСрЧтПтСбВс1123456789710111121314152161718519120221422231242526272829293013116
Архив по месяцам
Открыть в Telegram Каталог площадок Искать в ChatCrawler

Слепок открытой публичной ленты из поискового индекса ChatCrawler — «Google по публичному Telegram»; обновляется по мере обхода площадки. Время — UTC.

Только публичный контент, официальный API Telegram. О проекте · Вопросы · Чего мы не делаем · Убрать страницу из выдачи · Каталог