gagan Soti       May 9, 2026      15

What is a correct syntax to return the first character in a string?

  1. x = sub("Hello", 0, 1)
  2. x = "Hello".sub(0, 1)
  3. x = "Hello"[0]
  4. None of the above

The Right Answer is : Option C

Explanation