The function for printing the ASCII character for a number is chr(Number). For example: chr(76) is ’L’ and chr(243) is ‘¾’. Similarly, there is an ord function to do the same in reverse. For example ord(‘L’) is 76 and ord(‘%’) is 37. Write a program that will display all the ASCII characters from 0 to 255 on one screen.
Comments
Leave a comment