Formatting Python Strings
Description
In this course, you’ll see two items to add to your Python string formatting toolkit. You’ll learn about Python’s string format method and the formatted string literal, or f-string. You’ll learn about these formatting techniques in detail and add them to your Python string formatting toolkit.
In this course, you’ll learn about:
- The string
.format()
method - The formatted string literal, or f-string
Download Links
Direct Download
Formatting Python Strings.zip (93.3 MB) | Mirror
Often you’ll want more control over the formatting of your output than simply printing space-separated values. There are several ways to format output. before the opening quotation mark or triple quotation mark. Inside this string, you can write a Python expression between