Question: Define a function ASCII ( x ) where the parameter x is a string, for example: ASCII ( cat ) . Your function

Define a function ASCII(x) where the parameter x is a string, for example: ASCII("cat"). Your function then returns four (4) 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 x of your function.
Having defined your function ASCII(X), test it with the command >>print(ASCI("cat")). This command prints the return output to the screen:
3,[99,97,116],104,?'c'
 Define a function ASCII(x) where the parameter x is a string,

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!