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

What is printed?

print('ab' * 2)
  1. abab
  2. ab2
  3. ab ab
  4. TypeError
Multiplying a string by an int repeats it.
Play Problem Solving ▸