Skip to content Skip to sidebar Skip to footer
Showing posts with the label 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)

Trigger F-string Parse On Python String In Variable

This question comes from handling jupyter magics, but can be expressed in a more simple way. Given … Read more Trigger F-string Parse On Python String In Variable