List ordinal values of each elements of a word to get ordinal values in python on January 20, 2021 Get link Facebook X Pinterest Email Other Apps #list ordinal values of each elements of a word to get ordinal valuesfor x in input("enter the word : ") : print("ordinal value of", x, "is", ord(x))