Instead of reading like 10 PEPs for f strings, I just use the + operator on strings and backslash escaping, big whoop.
Python string literals are kinda funny
11–20 of 54 posts
Re: Python string literals are kinda funny
#12I'm not a fan of f-strings. I feel like 90% of new Python features in the last 10 years just increased language complexity without any benefit.
Indeed, and I get that one can ignore those features (I do), but finding them in existing code or having the AI coding agent use them diminishes the "easy for beginners" aspect.
Re: Python string literals are kinda funny
#13Re: Python string literals are kinda funny
#14Been using python for almost 10 years. I never use any of the funky strings. Instead of reading like 10 PEPs for f strings, I just use the + operator on strings and backslash escaping, big whoop.
Been using python for longer than 10 years and immediately started using f-strings when I could. It takes almost no time to understand the basics.
Re: Python string literals are kinda funny
#15Been using python for almost 10 years. I never use any of the funky strings. Instead of reading like 10 PEPs for f strings, I just use the + operator on strings and backslash escaping, big whoop.
print(f"Age: {age}")
Thus concludes the lecture on f-strings.
Re: Python string literals are kinda funny
#16Been using python for almost 10 years. I never use any of the funky strings. Instead of reading like 10 PEPs for f strings, I just use the + operator on strings and backslash escaping, big whoop.
Re: Python string literals are kinda funny
#17Re: Python string literals are kinda funny
#18Re: Python string literals are kinda funny
#19Re: Python string literals are kinda funny
#20Been using python for almost 10 years. I never use any of the funky strings. Instead of reading like 10 PEPs for f strings, I just use the + operator on strings and backslash escaping, big whoop.