What is the use of the "ord" function in Python?