chr()Easy Examples

Returns the character for a given Unicode code point

Basic chr() usage

Simple demonstration of the chr() built-in function.

python
print(chr(65))
print(chr(97))
print(chr(9731))

chr() is a built-in function that returns the character for a given unicode code point.

chr() with different inputs

Calling chr() with various argument types.

python
# More chr() examples
print("chr() is a Python built-in function")
print(f"Type: {type(chr)}")

chr() accepts different types of arguments and produces corresponding results.

Want to try these examples interactively?

Open Easy Playground