MCQ Single Best Answer Easy

QThe output of the expression sorted ({ ord(i) for i in 'apple' }) is _______.

ID: #3648 Python Functions MCQ 1,734 views
Question Info
#3648Q ID
EasyDifficulty
Python Functions MCQTopic

Choose the Best Option

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

  • A {'a':97, 'e':101, 'l':108, 'p':112, 'p':112}
  • B [97, 101, 108, 112]
  • C [97, 112, 112, 108, 101]
  • D [97, 101, 108, 112, 112]
Correct Answer: Option B

Explanation

[97, 101, 108, 112]

Share This Question

Challenge a friend or share with your study group.