Admiral Kirk wants a program that can encrypt his messages and transmit them across the Galaxy from the Starship Enterprise. He has tasked his officer, Pavel with this assignment.
Given the function send_message()
, help Pavel create a decorator function encrypt()
to encrypt the string returned from it. To encrypt the message do the following:
- Call
ord()
on every letter in the string
- Combine all the values in a list
- Return the list