I Found THIS Out TOO LATE In Python...

preview_player
Показать описание
I found this out too late in Python. #python #code #programming
Рекомендации по теме
Комментарии
Автор

Omg bro did really read the documentation

sirjummes
Автор

Perhaps it would be more convenient in the first case to write
big = 1_500_000

mdperpe
Автор

Yes, C++ has that feature too, pretty cool!

BlackNinjaCX
Автор

These numbers are called Complex types. It's a type of Numeric datatype. Its basic for analysts and scientists who use python.

NicolastheThird-hm
Автор

be aware that it'll make it a float so you may want to cast it to an int.

alkeryn
Автор

lmao I've been using this for years. You can also use underscores as commas to see it easier.

PotatoChips-jypk
Автор

I'm pretty much not aware of any language that does NOT have this feature (and I've been programming for 45 years)

VigilanceTech
Автор

Maybe a lot of people don't know this already. But all the scientists do.

scottclowe
Автор

I don't understand syntax declaring the variable you're using. How does it works?

blenderstuffs
Автор

Also, you can use underscore in numbers (_) so you can write 1_000_000 making it easier to read.

VivekPrakashIn
Автор

I dont know any langage that doesn't allow scientific notation

ence
Автор

Why are you not declaring the big variable as we normally do? I mean the colon is confusing.

abdurrafaywali
Автор

Wow! Even more gibberish in my 1.2e3 lines of code project? Nuh uh! Not today!

colourfulyoker
Автор

Says the legend if you repeat the variable names three times while looking at a mirror during midnight, a death rapper appears and kills you

Elefantoche
Автор

Look for this same feature in other languages too. It's in a lot of them.

pharoah
Автор

bro i dont need this when im asleep on the 9 key so i can write infinite into a variable without reading documentation again

arpitashrivas
Автор

Ive never used python or even C++ in my life why am I watching this

RPM
Автор

Can the "power" be dynamic? Instead of using eval. Im thinking no. But i wonder.

ashersilver
Автор

May God bless, nice tutorial, never knew that before!

aidennelson
Автор

Floats are incredibly dangerous. Try: int_num = int(1.6e6)

WifeWantsAWizard