Python character generation

Viewed 123

Is there an equivalent Python function to JavaScript's String.fromCharCode?

The use case is a string generator and I'd like to use the ASCII decimal or hex values to generate the characters (numbers, symbols, upper/lower letters).

JS example:

String.fromCharCode(97) // Gives 'a'
1 Answers
Related