Share your repls and programming experiences

← Back to all posts
binary to decimal transformer
andliu766
Voters
BuddyRaider
BananaJellyfish
maxina
MrEconomical
SelenaYang1
Th3Coder
ryanbrwr
andliu766
Comments
hotnewtop
BuddyRaider

Nice work @andliu766, I never would have thought to go about it like that lol XD

BananaJellyfish

There are 10 types of people in this world: those who know binary, and those who don't

maxina
andliu766

@BananaJellyfish me at first look: there are only 2, not 10. me at second look: oh yeah, 10 is 2 in binary

BananaJellyfish

@andliu766 i love programming jokes

SudhanshuMishra

Cool work bro

TotallyNotSeth

Great job! Quick tip: Python actually has a built-in feature for this! int("101010", base=2) == 42

maxina

@SethPeace all the ops work for nothing :( lol

andliu766

@SethPeace that's cool

MrEconomical

upvoted

FlaminHotValdez
Th3Coder

Indeed, it is!

Btw great code! :)