2 ms·
About as much sense as it makes to use ; after every Python statement. Just like Pascal. (Yeah I know, ; is a statement separator, not a statement terminator i
by DonHopkins 7y ago
About as much sense as it makes to use ; after every Python statement. Just like Pascal.
(Yeah I know, ; is a statement separator, not a statement terminator in Pascal.)
As long as you're being just like Pascal, did you know Python supported Pascal-like "BEGIN" and "END" statements? You just have to prefix them with the "#" character (and indent the code inside them correctly, of course). ;)
if x < 10: # BEGIN
print "foo"
# END