4 ms·
languages where there are multiple syntactic ways to do things Python zen says: the should be one (and preferably only one) obvious way to do it. Perl might f
by makapuf 7y ago
languages where there are multiple syntactic ways to do things
Python zen says: the should be one (and preferably only one) obvious way to do it. Perl might fit your description better.
- Avamander 7y agoUnfortunately we have many ways to do format strings now :P
- makapuf 7y agoNo, we only have fstrings now :) - I know -too well- backwards compatibility...
- EForEndeavour 7y agolist(map(f, iterable)) versus [f(x) for x in iterable] also comes to mind!
- makapuf 7y agoIf I remember correctly, it is recommended to use list comprehension (see stackoverflow)