When Strings Beat Numbers
Circle the smallest number. 3 10 Tell or show how you know the answer: '3' > '10' true
A worksheet asks the student to circle the smallest number between 3 and 10 and explain the answer. The response shows a programming comparison where the numbers are treated as strings, making '3' greater than '10' because of lexicographic ordering. The joke is aimed at programmers who recognize this classic type-coercion or string-comparison mistake.
worksheet / рабочий листprinted instructions / напечатанные инструкцииnumber 3 / число 3number 10 / число 10rectangle / прямоугольникhand-drawn circle / нарисованный от руки кругcomputer code snippet / фрагмент компьютерного кодаcomparison operator / оператор сравненияtrue result / результат trueblack screen / чёрный экранblue text / синий текстgreen text / зелёный текстgray background / серый фон
- @profunctor_io / 8849 2023-04-29
- Type
- image
- Size
- 800×693 · 56.2 KiB
- Mood
- sarcastic
- Language
- en
- Added