You are to write a program that calculates the ascii numbers when given any decimal number between 0 and 255. The program is to contain a function call deciToAscii(number) that accepts the decimal argument and returns an ascii number as an eight character string.
1
Expert's answer
2013-01-29T09:14:45-0500
def deciToAscii(number): return ''.join([str(ord(x)) for x in str(number)])
Comments
Leave a comment