$ ./guess_the_language
Problem Solving — predict the output
Problem Solving — predict the output · medium · #70
What is printed?
print(f"{3.14159:.2f}")
3.14
3.142
3.15
3.14159
The .2f format rounds to two decimal places.
Play Problem Solving ▸
◂ #69
all Problem Solving — predict the output questions
#71 ▸