Why doesn't anyone talk about this Python Trick?

preview_player
Показать описание
#python #coding #programming #pythonprogramming
Рекомендации по теме
Комментарии
Автор

You can even do enumerate(fruits, 1) without start=

Автор

For a second i think I scrolled to Muskan Karia Channel's Shorts

nonesubham
Автор

But it is less logical, as it is better to do +1. As many people when see index will automatically think that it equals 0 and won't look at start and enumerate

ximega
Автор

A better trick is to actually look into the documentation.

silentwater
Автор

if you need to only shift it by a simple amount... + X is less characters than ", start=X"... Takes too much time... so wasteful /s :D

Virdues
Автор

I'm teaching Python for years and I actually learn this from my student's work

tiongah
Автор

The best python trick is to use an "actual" programming language.

gladiko
Автор

I've been brainwashed to start counting from 0. I'm good, thanks Python!😄

ghezaegoitom
Автор

I love these python please....give Indently a run for his money!!!!

easypeasy
Автор

your the one i can trust when i comes to python

Cac_you
Автор

Can you make tutorial about generators and iterators?

kostekklo
Автор

You can bet, people even don't know/ use enumerate 😂😅

satisfyingly
Автор

Sorry Tim corey schafer teach this trick 7 years ago

aniketmahajan
Автор

It’s not an index, it’s a count. So don’t call it idx. -1.

DrDeuteron
Автор

Basically everything in python just happens, I feel like one they'll come with a function that can design a complete program you just give the arguments

anshumankhanna
Автор

It’s not a trick - it’s a parameter to a function everyone can read in the API documentation. Click bait

floriansalihovic
Автор

so what different start and idx + number ?

rezhaknightwalker
Автор

Thank you. I am aware of it and i am using it.😁

KrAsHeDD