I'll just leave this here: https://www.python.org/dev/peps/pep-0020/
"There should be one-- and preferably only one --obvious way to do it."
There are a lot of warts on that snake, but I still really like using Python.
"There should be one-- and preferably only one --obvious way to do it."
There are a lot of warts on that snake, but I still really like using Python.
#python
import re
m = re.search('(a.+)(d.+)', 'abcdef')
if m:
print(f"{m.group(1)},{m.group(2)}")
#perl
if('abcdef' =~ /(a.+)(d.+)/){
print "$1,$2";
}That aside, though, I don't consider brevity alone the most critical criteria for a programming language; that way lies APL. Expressiveness, yes, but not at the expense of clarity.
Also "Simple is better than complex", "practicality beats purity" and "Readability counts".
The zen is not the bible, you don't get to cherrypick the stuff you want to make your case.
Plus, they are just guide lines, in the end, you have a debate in the python dev mailing list with reasonable people making their case.