Python chr()

The chr() function returns a character that represents the specified unicode.



  • The chr() method takes only one integer as argument.
  • The range may vary from 0 to 1,1141,111(0x10FFFF in base 16).
  • The chr() method returns a character whose unicode point is num, an integer.
  • If an integer is passed that is outside the range then the method returns a ValueError.


Creating a String use ASCII characters.



C O D E   I T

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s