String Formatting Flashcards
1
Q
Formatted string literal, or f-string
A
allows a programmer to create a string with placeholder expressions that are evaluated as the program executes. An f-string starts with an f character before the starting quote and uses curly braces { } to denote the placeholder expressions.
2
Q
Replacement Field
A
A placeholder expression is also called
3
Q
presentation type
A
is part of a format specification that determines how to represent a value in text form, such as an integer