PyBasic LogoPyBasic.
HomeLearnProjectsWhy Free?
☕Start Learning
Learn/Beginner/String Formatting
BeginnerCategory 8 of 21

String Formatting

Format and interpolate strings with f-strings and .format().

Start
1

F-String Interpolation

Complete the "F-String Interpolation" exercise.

Start
2

Decimal Formatting

Complete the "Decimal Formatting" exercise.

Start
3

Text Alignment

Complete the "Text Alignment" exercise.

Start
4

Zero Padding

Complete the "Zero Padding" exercise.

Start
5

.format() Method

Complete the ".format() Method" exercise.

Start
Previous
String Indexing & Slicing
Next
Boolean Logic
PyBasic LogoPyBasic

A free, interactive platform for learning Python from scratch. Built for the community.

No Tracking•No Ads•100% Free

© 2026 • Made with ❤️

☕Support