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

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)