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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Replacement Field

A

A placeholder expression is also called

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly