Multiple ChoiceIntermediate 30s
f-string Formatting
Choose the best answer for: f-string format spec
Options
- 1f-strings can't format numbers
- 2f'{x:.2f}' rounds to 2 decimal places
- 3f'{x,%}' multiplies by 100
- 4f'{x:2f}' rounds to 2 decimals
Think you can answer under pressure?
Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.