Question: Programming in Python: 3) Create a new python file: main.py. Move the main code from your original python file into this new python file. If
Programming in Python:


3) Create a new python file: "main.py". Move the main code from your original python file into this new python file. If done correctly, the main code will be in main.py file, and only functions will remain in the original python file 4) Next, move (do not copy-move) the python file that contains your functions to a different folder. Then in the "main.py" file, add that folder path to the module import path, and add the appropriate import statement(s) to import the 2 functions. Test your program by running main.py-it should work as normal 5) Modifyour code in main py to only calthe decryt,le unction heenct,e function doe not return None 3) Create a new python file: "main.py". Move the main code from your original python file into this new python file. If done correctly, the main code will be in main.py file, and only functions will remain in the original python file 4) Next, move (do not copy-move) the python file that contains your functions to a different folder. Then in the "main.py" file, add that folder path to the module import path, and add the appropriate import statement(s) to import the 2 functions. Test your program by running main.py-it should work as normal 5) Modifyour code in main py to only calthe decryt,le unction heenct,e function doe not return None
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
