Question: Define a function ASCII ( x ) where the parameter x is a string, for example: ASCII ( cat ) . Your function
Define a function ASCII where the parameter is a string, for example: ASCIIcat Your function then returns four items:
Length of string
List of ASCII codes for that string
Average of ASCIl codes
First letter in the string should input their string as the argument of your function.
Having defined your function ASCIIX test it with the command printASCIcat This command prints the return output to the screen:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
