โ† All lessons

Lesson 25 of 62 ยท about 15 minutes

String Formatting ๐Ÿงพ

String Formatting ๐Ÿงพ You already know f-strings: f"Hello {name}" . After the value you can add a colon and a format spec , a tiny language that controls width, alignment, decimal places and number style. It is how you turn raw numbers into receipts, reportsโ€ฆ

This lesson is part of Pythonaut Pro. The first two lessons are free, so you can start there and see how it works.

See the free lessons