πŸ“Š Python
Q. What will be the output of the following code snippet?
Code:
example = ["Sunday", "Monday", "Tuesday", "Wednesday"];
print(example[-3:-1])
  • (A) ['Monday', 'Tuesday']
  • (B) ['Sunday', 'Monday']
  • (C) ['Tuesday', 'Wednesday']
  • (D) ['Wednesday', 'Monday']
πŸ’¬ Discuss
βœ… Correct Answer: (A) ['Monday', 'Tuesday']

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
386
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Akash Lawaniya
Publisher
πŸ“ˆ
80%
Success Rate