© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Miguel Brito
Machine Learning Software Engineer - Hobbyst Technical Writer - Interested in Software Testing, Best Practices, Scalability, and Python.
Python f-strings are impressive! Did you know you can use f-strings to string format almost anything in Python? You can use them to format floats, multiline strings, decimal places, objects and even use if-else conditionals within them. In this pos...
Martin Bless
Punch card programmer
Wow, thanks for the plethora of examples. One thing I'm missing: What about "nested" variable substitution like
>>>b = 15 >>>c = 5 >>>f"{2/3:{b}.{c}}" ' 0.66667'
Maybe you would like to explore and think that through as well? That would make your blog post perfect for me.
Hi Martin Bless, yes, indeed. I was aware of that and completely forgot to mention it in the article. Thanks for the suggestion!
Andrew Baisden
Software Developer | Content Creator | AI, Tech, Programming
Whoa so detailed with many examples definitely going to revisit this.
Thanks Andrew Baisden!
kakhaber tsito
learn,learn and learn!
Thanks
Paula Maranhão
So much stuff you can do! I'll certainly take notes of them all. Thanks for the great content.
Vivek Tiwari
Wow, that's a great list, Miguel Brito. Bookmarked! 👏
Martin Bless
Punch card programmer
Wow, thanks for the plethora of examples. One thing I'm missing: What about "nested" variable substitution like
>>>b = 15 >>>c = 5 >>>f"{2/3:{b}.{c}}" ' 0.66667'Maybe you would like to explore and think that through as well? That would make your blog post perfect for me.