4 ms·
Whenever somebody complains about how Python uses indentation instead of { } or BEGIN END, you can prove to them that it actually does support that and more, by
by DonHopkins 4y ago
Whenever somebody complains about how Python uses indentation instead of { } or BEGIN END, you can prove to them that it actually does support that and more, by demonstrating that they simply need to prefix their favorite brackets or keywords with Python's unary "#" operator, like:
for i in range(10): #{
print(i)
#}
or:
for i in range(10): #BEGIN
print(i)
#END
You can even mix-and-match them, like:
for i in range(10): #BEGIN
print(i)
#}
or:
for i in range(10): #{
print(i)
#END
or turn them inside-out, like:
for i in range(10): #}
print(i)
#{
or:
for i in range(10): #END
print(i)
#BEGIN
Python is extremely flexible that way, and can easily strangle and eat all other languages.