Skip to content Skip to sidebar Skip to footer
Showing posts with the label F String

What Does = (equal) Do In F-strings Inside The Expression Curly Brackets?

The usage of {} in Python f-strings is well known to execute pieces of code and give the result in … Read more What Does = (equal) Do In F-strings Inside The Expression Curly Brackets?

Escaping Chars In F-string

I have run into the following issue with the f-string: >>> a='hello' # how to pri… Read more Escaping Chars In F-string

Trying To Understand Some F-string Magic (formatting Mini Language In F-strings)

In a comment on this post, somebody dropped this line of code: print('\n'.join(f'{a:{a}… Read more Trying To Understand Some F-string Magic (formatting Mini Language In F-strings)