코드로 우주평화

0117. get character from ASCII Value 본문

나는 이렇게 학습한다/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)