$ ./guess_the_languageProblem Solving — predict the output
Problem Solving — predict the output · hard · #46

What is printed?

print("hello"[::-1])
  1. hello
  2. h
  3. ohlle
  4. olleh
A step of -1 reverses the string.
Play Problem Solving ▸