MCQ Single Best Answer Not Set

QWhat will be the output after the following statements?
x = ['a', 'b', 'c', 'A', 'B', 'C']
x.sort(key=str.lower)
print(x)

ID: #3993 Python Built-in Functions MCQ 259 views
Question Info
#3993Q ID
Not SetDifficulty
Python Built-in Functions MCQTopic

Choose the Best Option

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

  • A SortError
  • B ['a', 'b', 'c', 'A', 'B', 'C']
  • C ['a', 'A', 'b', 'B', 'c', 'C']
  • D ['A', 'B', 'C', 'a', 'b', 'c']
Correct Answer: Option C

Explanation

['a', 'A', 'b', 'B', 'c', 'C']

Share This Question

Challenge a friend or share with your study group.