Be a Python Pro with Enumerate

Be a Python Pro with Enumerate

Rob Mulla

1 год назад

986,972 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Hypatia du Bois-Marie
Hypatia du Bois-Marie - 19.09.2023 01:03

Me, the Haskell cultist: zip the entire stream of integers to the list, lift that function postcomposed with putStrLn, and then sequence/commutate the Traversable list with the Monad IO.

Ответить
Enzo1️⃣5️⃣
Enzo1️⃣5️⃣ - 17.09.2023 21:55

Certified double noob😭😭

Ответить
Il SUS è la mia vita
Il SUS è la mia vita - 13.09.2023 17:54

holy shit

Ответить
Esau Ol
Esau Ol - 13.09.2023 10:34

Python pro is to know what is MOR and ORM (Django)

Ответить
coolguy
coolguy - 10.09.2023 05:50

I was a noob

Ответить
Riya Shah
Riya Shah - 08.09.2023 06:38

enumeration gives number to names 😅

Ответить
Vaibhav tripathi 007
Vaibhav tripathi 007 - 06.09.2023 10:40

I code in python not pyythooon😂😂😂

Ответить
Fouad Nassar
Fouad Nassar - 03.09.2023 02:48

The toxic trait of most coders is tha they choose the complicated way because it makes them look cooler. The first one worked just fine

Ответить
Neo
Neo - 01.09.2023 19:37

I would suggest for beginners to avoid using built in functions and rather make your own functuon for a certain task. This would help you with logic building.

Ответить
Aleric Cusher
Aleric Cusher - 28.08.2023 22:58

You didn't use list comprehension, you are a certified tripple noob

Ответить
Joshua Wiswell
Joshua Wiswell - 23.08.2023 00:02

Honestly I disagree with this sentiment. Lot of people code in multiple languages and using a standard process that works in most languages imo is better. Of course if you're a python developer and average 5 lines of code a day sure but let's face it most people using python aren't.

Ответить
rayoh2011
rayoh2011 - 22.08.2023 00:02

talking down to your audience is not a good idea. Highly suggest you don't it again!

Ответить
nika bhallu
nika bhallu - 16.08.2023 22:16

can you help me , i am running pythons on mac hut whenever I try any command with python its show killed". eg : python3 --version

[1] killed 1427 python3 --version

Ответить
HS AA Series
HS AA Series - 15.08.2023 18:04

Rip for Those who do know enumerte 😢

Ответить
christian audebert
christian audebert - 11.08.2023 12:44

never want to see this pedantic noob again..

Ответить
bldr xyz
bldr xyz - 02.08.2023 05:46

that's an extremely inefficient usecase of enumerate, under the hood it does an additional for loop for the array, where instead you could just use index()... stop acting like a know it all and stop recommending stupid implementations of problems nobody ever had

Ответить
ajitt
ajitt - 02.08.2023 04:36

You are using python for code then you are super noob 🫨😂

Ответить
tech-learner
tech-learner - 31.07.2023 17:16

I am a python pro

Ответить
Jack Hartwig
Jack Hartwig - 30.07.2023 17:09

Python gross and icky

Ответить
gamedeathmatch
gamedeathmatch - 28.07.2023 18:36

I mean usually I find myself using map instead

Ответить
JamesCloud
JamesCloud - 27.07.2023 07:53

What is the value of 'thing'? I get an error. It's not defined.

Ответить
thespicycabbage
thespicycabbage - 25.07.2023 05:05

Since enumerate does not improve time or space complexity, this advice is for n00bs

Ответить
Shirosh Perera
Shirosh Perera - 23.07.2023 14:27

as a machine learning engineer I see this as an absolute win, I think

Ответить
Gunesh Shanbhag
Gunesh Shanbhag - 23.07.2023 00:36

Rob I saw another video which said people use list with enumerate are noobs.
He was advocating generators instead of lists.

Ответить
nanakoab
nanakoab - 19.07.2023 23:04

Range is more efficient if all you care for is an index enumerate is more costly in that sense. Who is the NOOB

Ответить
Dav Developer
Dav Developer - 15.07.2023 20:11

Good thing!

Ответить
Quotopia
Quotopia - 15.07.2023 19:48

just use rust c or go instead

Ответить
Wayne Lau
Wayne Lau - 15.07.2023 05:25

Coding in the first two is fine. Get it to work, then optimise it.

Ответить
J G
J G - 13.07.2023 10:26

I find it harder to understand and is less explicit. I prefer a counter by convention to other languages.

Ответить
RonJohn63
RonJohn63 - 11.07.2023 03:57

You're obnoxious. Clicking the "Don'r recommend this channel" button.

Ответить
Arjix
Arjix - 09.07.2023 23:37

Meanwhile me, rarely using python so I do what works in all languages and get called a noob for no actual reason: guess I'm a noob

Ответить
Hz A.
Hz A. - 09.07.2023 13:01

this code is the same...

Ответить
Souchik Joardar
Souchik Joardar - 08.07.2023 16:19

Java is better bruh 😅

Ответить
Teddy Fitz
Teddy Fitz - 08.07.2023 05:37

Well... Under the hood it's basically doing the same thing. I suppose the code is more pythonic, but it only really improves readability if you're familiar with enumerate. Still a neat tip.

Ответить
Sanfera
Sanfera - 07.07.2023 20:43

As a wise man said, 6 hours of googling, debugging and optimizing can save you from 10 minutes of document reading.

Ответить
Jon Jon
Jon Jon - 07.07.2023 19:18

I am CERTIFIED GURU now!

Ответить
Joshewa
Joshewa - 07.07.2023 18:20

i think the real question is if you need a todo list to do basic self care says volumes. 99 percent of coders dont use many of the built it features as its the objective and functionality accuracy of the code the ultimately most important. plus labeling someone as a noob in programing serves no purpose cause most of us all started from nothing and encourage ability's not trying to enforce some superiority

Ответить
CMNPriesT
CMNPriesT - 06.07.2023 18:16

naa its only cool when it start from 1 not 0
so that average person will know what u are doing
we are not noobs we just prefer ;
counts = 0
counts+=1

Ответить
vihari Vemuri
vihari Vemuri - 06.07.2023 11:00

So you're a noob because you don't know some feature of a language that you can just figure out along the way? A noob to me is someone priotizing knowledge of some prog. language over ability to solve difficult problems.

Ответить
Michael Ogunjimi
Michael Ogunjimi - 06.07.2023 03:49

I believe there are more than one way to achieve a result. You go with the one you're comfortable with.

Ответить
Dhrumil Shah
Dhrumil Shah - 06.07.2023 03:21

But it won't work properly if you have to iterate and you have to delete or add some things while iterating

Ответить
Luma
Luma - 05.07.2023 10:00

What do you use to get thé time

Ответить
Andrew Wolford
Andrew Wolford - 04.07.2023 19:46

Honestly I probably would've wrote a 15 line code yo stop the loop. Well I'm learning javascript right now to improve website quality and so I have more experience

Ответить
Mooverse
Mooverse - 04.07.2023 01:24

Bro, Im trying to learn... dont call me a noob😢

Ответить
zSmyley
zSmyley - 02.07.2023 12:38

Funny how he doesn't even say something like 'python noob' but just 'noob'. Imagine you are a C dev with years of experience and this guy calls you noob cause you use `for i in range` that one time that you have to use python for something. Hahaha

Ответить
Soulkeeper
Soulkeeper - 01.07.2023 15:43

Noob

Ответить
OverTheGameboy
OverTheGameboy - 01.07.2023 10:04

You are using Python, you are a certified NOOB

Ответить
Adam Drake
Adam Drake - 01.07.2023 09:10

This was literally the first thing I learnt when doing my python course.

Ответить
Figure Itout
Figure Itout - 01.07.2023 03:00

Your code wouldn't pass MyPy

Ответить
Rai Don
Rai Don - 28.06.2023 08:06

I need exploit tutorial

Ответить