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.