$ ./guess_the_languageProblem Solving — predict the output
Problem Solving — predict the output · easy · #202

What is the output?

print('Py' + str(3) * 2)
  1. Py6
  2. Py3Py3
  3. Py33
  4. PyPy3
Multiplication binds tighter, so '3' * 2 is '33' before the concatenation.
Play Problem Solving ▸