Question: Questions Not yet graded Define a function ASCII ( x ) where the parameter x is a string, for example: ASCII ( cat

Questions
Not yet graded
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 ASCII 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(ASCII("cat")). This command prints the return output to the screen:
[99,97,116],104, 'c'So
 Questions Not yet graded Define a function ASCII(x) where the parameter

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!