2 Projects Structure
2.1 Task : Manage Python Projects Structure
2.1.1 Project 1
- Create a project named project1 which will use the environment named env1
- Use the correct naming for your project, packages and modules
- Create a package named istec.p4.exercises
- Within this package create a module named exercise1.py
- Inside this module create a basic function named hello() to execute print(“Hello World!!”)
- Execute your program
2.1.2 Project 2
- Start from project1 code and duplicate it as project2
- Update your code in project2 to produce an output similar to this:
- Hello World!!
- I’m running using virtual environment: env1. (or)
- I’m running using virtual environment: env2. (for when you are running it using another virtual environment)
- Execute your program
Important
Your code should be dynamic, meaning, you should not hard code your virtual environment name.
2.1.3 Questions
Did it run ?
What was the output ?