$ ./guess_the_languageProblem Solving — predict the output
Problem Solving — predict the output · medium · #70

What is printed?

print(f"{3.14159:.2f}")
  1. 3.14
  2. 3.142
  3. 3.15
  4. 3.14159
The .2f format rounds to two decimal places.
Play Problem Solving ▸