Single Choice Not Set

QWhat will be the output after the following statements?
a = [' today', ' tomorrow ', 'not now']
print([x.strip() for x in a])

ID: #3877 Python List MCQ 304 views
Question Info
#3877Q ID
Not SetDifficulty
Python List MCQTopic

Choose the Best Option

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

  • A ['today', 'tomorrow ', 'not now']
  • B [' today', ' tomorrow', 'not now']
  • C ['today', 'tomorrow', 'notnow']
  • D ['today', 'tomorrow', 'not now']
Correct Answer

Explanation

['today', 'tomorrow', 'not now']

Share This Question

Challenge a friend or share with your study group.