In filbert, True and true in Python both get evaluated to true; in JS.
Similarly, False and false evaluate to false; in JS.
Only True and False should work. Python would consider true and false variables, and if they weren't defined beforehand, calling them would result in a NameError. E.g.
NameError: name 'true' is not defined
Remembering that Python booleans are titleized is another learning block, so this bug may give new programmers a less frustrating experience (avoids moments like "why isn't my if statement working?") but it also teaches them incorrect Python. Just something to consider.
In filbert,
True
andtrue
in Python both get evaluated totrue;
in JS. Similarly,False
andfalse
evaluate tofalse;
in JS.Only
True
andFalse
should work. Python would considertrue
andfalse
variables, and if they weren't defined beforehand, calling them would result in a NameError. E.g.Remembering that Python booleans are titleized is another learning block, so this bug may give new programmers a less frustrating experience (avoids moments like "why isn't my if statement working?") but it also teaches them incorrect Python. Just something to consider.