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

What is printed?

print("%d" % 3.9)
  1. 3
  2. 4
  3. 3.9
  4. TypeError
%d truncates toward zero instead of rounding.
Play Problem Solving ▸