Question: 3 . Exercise 2 : Encode a Message In the directory exercise 2 there are two files: func.py and test.py . The file test.py is
Exercise : Encode a Message
In the directory exercise there are two files: func.py and test.py The file test.py is a completed test script to help you with this exercise. The file func.py contains a stub for single function encode. This function encodes a string as a hidden message using a Caeser Cipher.
Read the specification and test cases carefully. More details about this function are provided in the detailed specifications in func.py Two helpful functions are ord and chr They are built into Python functions and are documented at the main Python website. ord converts a character into a number and chr converts it back.
Implement the function and test your answer with the test script. Make sure that your files remain in exercise; do not move them outside this folder.
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
