Only 27% Know This.. #python #programming #coding

preview_player
Показать описание
This short explains Python's insert method and how to use it.

Background music:
Creative Commons Attribution-ShareAlike 3.0 Unported
Рекомендации по теме
Комментарии
Автор

When user-friendliness is causing more confusion than necessary.

SLDApps
Автор

Its not very intuitive to "insert at X, Y" IMO, its more intuitive to "insert Y at X"

vincenzo
Автор

Thanks, Python, for doing something I didn't ask for and pretending everything is fine.

Just throw an error, dammit.

dive_bombr
Автор

Logic answer:
[1, 2, 3, null, 3]
(i mean it just makes sense)

BlueSheep
Автор

I think what we can gather from these videos is that python functions are often poorly named

duncancarr
Автор

interesting thing to note is that x[4] = 3 will cause an error even though it seems to do same thing - inserting integer 3 at 4th index of x list

rajeshalmarah
Автор

Man, I guess I'm dumb asf. How did I pass my exam?

ChainPenguin
Автор

But why is the first argument the index? It feels much more intuitive for the first index to be the item to insert. And that behavior of just inserting at the end is terrible, it just hides logical errors until something bigger breaks

evanbelcher
Автор

I like your VSCode theme. Wanna share it's name?

gazzalifahim
Автор

I came to the right conclusion but for the wrong reason lol

Duck_side
Автор

Python is always just run first then ask question later lol

broxxad
Автор

This is unnecessarily confusing really

jima
Автор

Not confusing at all. Just hard to remember documentation off the top of your head

jerycaryy
Автор

And that shows you why Python should not be used with anything else that scripting. Same problem with JavaScript, it's unsafe. It's terrible dynamic typed system with things like that make it super hard to debug.

godnyx
Автор

x.insert(y, # IDK if python has an easy infinity number

memetech-
Автор

This is why i hate python
C/C++/C# my love

itsScream
Автор

I Never coded Python but I looked at this and knew it was A… yet I struggle at coding lmao

seesikopter
Автор

correction: only 27% can actually understand the documentation

whisperSSG
Автор

And that is why python is garbage in a nutshell

demo
Автор

Honestly a lot of confusion and code-debugging would disappear if Python indices just started at 1.

zdrux