Q. What will the output be?

Code:
print('Python'[::-1])
  • (A) nohtyP
  • (B) Python
  • (C) Error
  • (D) None
πŸ’¬ Discuss
βœ… Correct Answer: (A) nohtyP
Explanation: The slice `[::-1]` reverses the string.
Explanation by: Mr. Dubey
The slice `[::-1]` reverses the string.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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