Question: ) Write a function, value_of_L(letter), which takes a lowercase letter & returns the value of the letter, which is defined to be the position of
) Write a function, value_of_L(letter), which takes a lowercase letter & returns the value of the letter, which is defined to be the position of the letter in the alphabet ('a' has position 1, 'b' has position 2,...., 'z' has position 26) squared minus 10. Plan on using the function from Q1 as a helper function. Test run: for letter in 'amtw: print('{0} has the value {1}.'.format(letter,value_of_L(letter))) a has the value -9. m has the value 159. t has the value 390. w has the value 519. My language is python 3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
