Showing posts with label ord()Function in python. Show all posts
Showing posts with label ord()Function in python. Show all posts

Friday, November 27, 2020

,

ord()Function in python with it's example

 ord function in python is used to return an integer representing of Unicode character.

Syntax:-

ord(ch)

Parameters For ord function in python

This function take just only one perameter and that known as ch (a Unicode character)

Return value

The ord() function in python returns an integer representing the Unicode character.

Example for ord()Function in python

print(ord('5'))    # 53
print(ord('A'))    # 65
print(ord('$'))    # 36

OUTPUT

ord()Function
ord()Function in python