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

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