The Python ord() function is used to convert a single Unicode character into its integer representation. We can pass in any single string character and the function will return an integer.