Single Choice Not Set

QWhat will be the output after the following statements?
x = 'no'
y = 'yes'
z = 'may be'
a = [y, z, x]
print(a)

ID: #3900 Python Basic MCQ 454 views
Question Info
#3900Q ID
Not SetDifficulty
Python Basic MCQTopic

Choose the Best Option

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

  • A 'yes', 'may be', 'no' ✔ ✖
  • B 'no', 'may be', 'yes' ✔ ✖
  • C ['no', 'may be', 'yes'] ✔ ✖
  • D ['yes', 'may be', 'no'] ✔ ✖
Correct Answer

Explanation

['yes', 'may be', 'no']

Share This Question

Challenge a friend or share with your study group.