πŸ“Š Python
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

πŸ‘οΈ
53
Total Visits
πŸ“½οΈ
8 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
81%
Success Rate