Quiz · Strings · lesson 8 of 10
Quiz — a format spec in an f-string
What does the program print?
price = 3.14159
qty = 3
print(f"{qty}x{price:.2f}={qty * price:.1f}")Subscribe to take the course
The course is free. Sign in with Telegram and subscribe to the channel to open every lesson.