Why Is Python Not Pythoning?? #python #coding #programming

preview_player
Показать описание
Why is this if statement being executed?
Рекомендации по теме
Комментарии
Автор

Basic thing to remember: even though sometimes you can read Python like English, Python is not English.

mathgeniuszach
Автор

I had to discover that by myself, I wish I knew that before 🤧

arturorg
Автор

i managed to figure this out. not because im smart but because ive been dumb, many, many times

kjcbhhd
Автор

Theres tricky things like this in almost every language! This was great to learn!

cbworm
Автор

Python: does something slightly not pseudo code
People: why is Python not Pythoning????

zgliu
Автор

These statements are almost always in other languages as if(name == "name1" or name == "name2") so seeing this statement immediately raises red flags

joakimkaseva
Автор

can you do more of this simple tips in syntaxes please

sudo
Автор

I actually ran into this issue and it stumped me for a week.

Eventually someone told me that the other options arent being checked against the "name" variable.

Thank you again for yet another great tutorial!

caspermoon
Автор

better to use a tuple over a list, since inmutables have better read, and creation speeds

gustavomendez
Автор

If the `list` only has 4 values, it's ok to use `in`, but if it gets bigger you should always use a `set` (replace `[]` by `{}`) because it's more efficient when using `in`

Rudxain
Автор

Reminds me of an error I had in java where the == operator didn't only check if the string was the same but if they had the same origin. So when I imported a name from another class it would always return false. Found out that you can just use object1.equals(object2).

Febreeze
Автор

That’s why I like explicit typing and type safty so much

bartekgolczyk
Автор

I just started watching shorts on Youtube. And man, I am learning so much as an Intermediate Python dev. from these videos. Thank you <3

freepalestine_stop_genocide
Автор

I loved the part when Python said "It's python'ing time" and python'ed all over the place

YugoslaviaZambia
Автор

The output will be “next time bring Bob, Tom, or Mike with you”

stonkodactyl
Автор

As a JavaScript developer Python looks easier to use.

ocsilentwolf
Автор

yeah, this used to be one of the problems I used to face but then I figured it out myself to use the in operator, you could use tuple or dictionary also but if it's a dictionary, it's only gonna check the key but not the value.

beepbeepgamer
Автор

Ahh I too remember day 2 of being a programmer.

Joooooooooooosh
Автор

only real OG's knew the error before he told you

TheRapidDev
Автор

Hey bool these videos are game changing, u got something really special here I hope you know that

avgvstvs