Python Calculator WTF Code
WTF? if num1 == 0 and sign == '+' and num2 == 0: print("0+0 = 0") if num1 == 0 and sign == '+' and num2 == 1: print("0+1 = 1") if num1 == 0 and sign == '+' and num2 == 2: print("0+2 = 2") ... print("Thanks for using this calculator, goodbye :")
A screenshot of a Python calculator project contains an enormous list of individually hardcoded addition cases, with a red box highlighting the repetitive code and a giant red “WTF?” written across the image. The joke is that the programmer implemented basic arithmetic through thousands of if-statements instead of using normal mathematical operations, making it a reaction to absurdly inefficient or beginner-level code. EN: A screenshot of a Python calculator project contains an enormous list of individually hardcoded addition cases, with a red box highlighting the repetitive code and a giant red “WTF?” written across the image. The joke is that the programmer implemented basic arithmetic through thousands of if-statements instead of using normal mathematical operations, making it a reaction to absurdly inefficient or beginner-level code.
- @gentoomemes / 168 2022-01-10
- @right_wing_dev_squads / 9604 2024-05-11
- Type
- image
- Size
- 800×800 · 131.6 KiB
- Mood
- саркастичный, абсурдный
- Language
- en
- Added