3 ms·
Doesn't calling .format on a string do the exact same thing as an f-string?
by wodenokoto 6y ago
Doesn't calling .format on a string do the exact same thing as an f-string?
- CJefferson 6y agoNo, because f strings can run arbitrary python code, you can write f"{X} - {y} = {X - y}"