memesearch
Python Calculator WTF Code

Python Calculator WTF Code

Download Find similar pictures
Text on the meme
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 :")
What it means

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.

Objects
Tags
Sources
Type
image
Size
800×800 · 131.6 KiB
Mood
саркастичный, абсурдный
Language
en
Added

Similar memes