Q. What will be the output of `print('Python'[::-1])`?

  • (A) nohtyP
  • (B) Python
  • (C) Error
  • (D) nothyP
πŸ’¬ Discuss
βœ… Correct Answer: (A) nohtyP
Explanation: Using slicing with `-1` reverses the string.
Explanation by: Mr. Dubey
Using slicing with `-1` reverses the string.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
106
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
91%
Success Rate