3 ms·
Unfortunately we have many ways to do format strings now :P
by Avamander 7y ago
Unfortunately 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)