Python - Input and Output
How can you print the number 7.12345 rounded to 2 decimal places using
print() and f-strings?print() and f-strings?:.2f inside the braces.{value:.2f}. print(f'{7.12345:2f}') misses the dot before 2. print(f'{7.12345:.2}') uses wrong format specifier. print(f'{7.12345:.f2}') has incorrect order.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions