MCQ Single Best Answer Not Set

QWhat will be the output after the following statements?
x = ['Today', 'Sunday', 'Monday']
x[2] = 'Friday'
x[1] = 'Yesterday'
print(x[-2] + ' was a great day')

ID: #3984 Python List MCQ 461 views
Question Info
#3984Q ID
Not SetDifficulty
Python List MCQTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A Friday was a great day
  • B Yesterday was a great day
  • C Sunday was a great day
  • D Monday was a great day
Correct Answer: Option B

Explanation

Yesterday was a great day

Share This Question

Challenge a friend or share with your study group.