3 ms·
I was in an interview not long after format strings in Python came out (for example, print(f”Hello, {name}”) rather than print(“Hello, %s”, name)) and the inter
by catillac 5y ago
I was in an interview not long after format strings in Python came out (for example, print(f”Hello, {name}”) rather than print(“Hello, %s”, name)) and the interviewer thought I was confusing languages and features, asserted this fact strongly, and was pretty surprised when it worked, but I think overall I lost points because the interviewer lost face.
C’est la vie.
- vlunkr 5y agoAs a very casual Python user, I didn't know about that! that's great.
- _whiteCaps_ 5y agoIt's so great. I especially like f"{foo=}" for debugging.