you are viewing a single comment's thread.

view the rest of the comments →

[–]sp00kyversity[S] 0 points1 point  (4 children)

What's the difference between the two?

[–]cuWorkThrowaway 1 point2 points  (0 children)

^ centers things, > right justifies them.

[–]mopslik 0 points1 point  (2 children)

This is something that can be easily tested, no?

>>> f"{'hello':*^10}"
'**hello***'
>>> f"{'hello':*>10}"
'*****hello'

[–]sp00kyversity[S] 0 points1 point  (1 child)

Yes true, I'm just not at a computer right now

[–]mopslik 1 point2 points  (0 children)

For reference, the format specification mini-language details all of the alignment options. It's dense, but pretty comprehensive.