The output of the expression [ chr(i) for i in [65, 66, 67] ] is _______.
['a', 'b', 'c']
['A', 'B', 'C']
('a', 'b', 'c')
('A', 'B', 'C')
Answers
Answered by
1
Answer:
['A', 'B', 'C']
Step by step explanation:
This is a Python code. The chr() method returns a character from an integer; which represents the unicode code point of the character.
65, 66 and 67 represent the unicodes for 'A', 'B' and 'C' respectively.
Notice also that the method is wrapped in square brackets. Therefore, the square brackets will also be printed out.
Therefore, the output of the expression [ chr(i) for i in [65, 66, 67] ] is :
['A', 'B', 'C'].
Similar questions
Social Sciences,
1 year ago
English,
1 year ago
English,
1 year ago
Math,
1 year ago
Math,
1 year ago