memesearch
Python JavaScript String Subtraction

Python JavaScript String Subtraction

Download Find similar pictures
Text on the meme
‘3’ - ’1’ = ‘3’ - ’1’ = 2 ‘3’ - ’1’ = Traceback (most recent call last): File "<pyshell#2>", line 1, in <module> ‘3’-’1’ TypeError: unsupported operand type(s) for -: 'str' and 'str'
What it means

A classroom comic compares Python and JavaScript while students try to calculate ‘3’ - ’1’. JavaScript-like code produces 2, but Python treats the quoted values as strings and throws a TypeError, joking about confusing programming languages and data types. It is used as a reaction to language-specific quirks or code that looks simple but fails. EN: A classroom comic compares Python and JavaScript while students try to calculate ‘3’ - ’1’. JavaScript-like code produces 2, but Python treats the quoted values as strings and throws a TypeError, joking about confusing programming languages and data types. It is used as a reaction to language-specific quirks or code that looks simple but fails.

Objects
Tags
Source
Type
image
Size
583×800 · 103.2 KiB
Mood
sarcastic, absurd
Language
en
Added