Same Task, Three Languages -- What Changes and What Doesn't
Every challenge here solves one task in pseudocode, Python, and JavaScript. The logic never changes. A few small things always do.
Every challenge on this site is the same task solved three times, once per language, and the rule behind that is strict: the variants solve the same problem, and a language only gets a different expected answer where it genuinely prints the answer differently -- never to give it an easier or harder job. The logic -- what gets compared, what gets looped, what gets returned -- is identical across all three. What changes is smaller than it looks at first.
Press Run to see what your code does.
Press Run to see what your code does.
Press Run to see what your code does.
Run all three: the same comparison prints TRUE, True, and true -- capitalized differently in every language, for the exact same true-or-false answer. That is the one difference the "one task, three languages" rule allows a variant to declare explicitly, because it is a fact about how each language spells a value, not about what the program computes. Blocks are the other visible difference -- pseudocode closes a block with an explicit END, Python uses indentation with no closing word at all, and JavaScript uses curly braces -- but those are three ways of writing the same structure, not three different structures. If two variants of a challenge ever produce genuinely different results for the same input, that is a bug to report, not a language quirk to shrug off.
Everything above runs in this page, on your own machine. There is more of it on the practice pages.