adplus-dvertising
frame-decoration

Question

What is the output of the code shown below?
[ord(ch) for ch in 'abc']

a.

[97, 98, 99]

b.

[‘97’, ‘98’, ‘99’]

c.

[65, 66, 67]

d.

Error

Posted under Python

Answer: (a).[97, 98, 99]

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of the code shown below?