Pooh Explains Python Integer Division
a = (300 + 4) print(int(a//2)) a = int("3"+"0"+"4") print(int(a/2))
Winnie the Pooh first presents a straightforward Python calculation, then appears in a tuxedo while expressing the same number through string concatenation before dividing it. The joke is that an unnecessarily complicated, fancy-looking approach is used for a simple programming task, making it a reaction to overengineering or showing off. EN: Winnie the Pooh first presents a straightforward Python calculation, then appears in a tuxedo while expressing the same number through string concatenation before dividing it. The joke is that an unnecessarily complicated, fancy-looking approach is used for a simple programming task, making it a reaction to overengineering or showing off.
cartoon bear / мультяшный медведьyellow bear / жёлтый медведьred shirt / красная рубашкаblack tuxedo / чёрный смокингwhite shirt / белая рубашкаblack bow tie / чёрный галстук-бабочкаblue chair / синее креслоcomputer code / программный кодdark code panel / тёмная панель с кодомinteger division / целочисленное делениеstring concatenation / конкатенация строк
- @profunctor_io / 1850 2019-04-04
- Template
- Fancy Pooh
- Type
- image
- Size
- 612×472 · 31.7 KiB
- Mood
- sarcastic, absurd
- Language
- en
- Added