I Learned Something New About Enumerate() In Python

preview_player
Показать описание
I've been using enumerate wrong for 3 years in Python. #Python #Short
Рекомендации по теме
Комментарии
Автор

python devs are obsessed with menial shorthands and syntactical decorators

oz
Автор

I see a python video with type annotation. I see a liked video.

alemd
Автор

chuff me, that +1 thing has been driving me to despair for years - tomorrow I am going to fix every script I've ever written

transientaardvark
Автор

This and zip() functions are incredibly useful, I think you can use them in every script.

vikraal
Автор

I wish we could see the screen in full when we see these lil videos on iPhone. 😢😢😢😢 Thanks for sharing so much good content!

jaquesadv
Автор

I would prefer to use i+1 because it doesn’t distort the actual value i is supposed to represent.

WallJumpGames
Автор

i miss the,
for i=0;i<10;i++
from other programming languages

Kakashihae
Автор

Was literally dealing with issue 10 mins ago. Thank you. This solution is way better.

thecringequeen
Автор

Using the addition instead of the start parameter is like using zip(range(k, len(array) + k), array) instead of enumerate(array, k).

ntlake
Автор

Very interesting. I am willing to see more of your content!

alejandro
Автор

Just embrace starting from 0, eliminate the confusion from within.

cat-.-
Автор

I swear to God, anything about programming posted on short, tiktok or reel is always one of the most usless things that you'll never use in real life. Just learn from documentation as you go, these "tricks and hacks" won't do anything for you.

brunosusak
Автор

This guy hasn't seen the sun in 8 years

TryingToBeHooman
Автор

If you learned that after 3 years of learning Python, then need to find yourself in something different...

ludentrop
Автор

Reading comments on similar videos, it's obvious that python programmers don't read documentation at all.

cipherxen
Автор

Thanks for sharing but I already know since i did my 3rd or 4th project in python.

Pylogicx
Автор

Python does a lot for you but details like this stay in the dark until you find them. I prefer primitive iteration even though I might lose some benefits for doing so.

overclucker
Автор

why did he blink just 3 times throughout this whole short? I'm scared

malcewicz
Автор

wait until he learns about zip and chain

NootNooot
Автор

That's why you look in the documentations

kevinhamb
visit shbcf.ru