A

Admin • 833K Points
Coach

Q. What will the output be?

Code:
print('Python'[::-1])
  • (A) nohtyP
  • (B) Python
  • (C) Error
  • (D) None
  • Correct Answer - Option(A)
  • Views: 31
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

The slice `[::-1]` reverses the string.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.