Python range() function
The range() is a built-in function available in Python. In simple terms, the range allows them to generate a series of numbers within a given interval. This function only works with the integers i.e. whole numbers.
Python ord() function
The ord() function in Python accepts a string of length 1 as an argument and returns the ASCII value of the passed argument. For example, ord('a') returns the integer 97.
Program:
Output
need an explanation for this answer? contact us directly to get an explanation for this answer