나는 이렇게 학습한다/Algorithm & SQL

0117. get character from ASCII Value

daco2020 2023. 1. 18. 00:09
반응형

Write a function get_char() / getChar() which takes a number and returns the corresponding ASCII char for that value.

Example:

get_char(65)

should return:

'A'



Solution:

get_char = lambda x: chr(x)


반응형