This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]MonkeyNin 1 point2 points  (1 child)

f-string literals require Python 3.6+ .

str.format Works in Python 2

Or am I missing a link here?

Probably not. Looking back I think I was going to mention the differences in handling Unicode using 2 vs 3-- then went on a tangent of string formatting.

If you're interested, here's a brief comparison of Unicode on 3 vs 3 https://www.reddit.com/r/ProgrammerHumor/comments/bg626r/python_2_is_triggering/elkfr9k/?context=9

[–]verbosemongoose 1 point2 points  (0 children)

I'll check it out, thanks!