Skip to content

Latest commit

 

History

History
41 lines (23 loc) · 524 Bytes

get_character_from_ASCII_Value.md

File metadata and controls

41 lines (23 loc) · 524 Bytes

CodeWars Python Solutions


get character from ASCII Value

Write a function which takes a number and returns the corresponding ASCII char for that value.

Example

get_char(65) # => 'A'

For ASCII table, you can refer to http://www.asciitable.com/


Given Code

def get_char(c):
    pass

Solution

def get_char(c):
  return chr(c)

See on CodeWars.com