Directions:
- Create Your Own Repository:
- Log in to GitHub.
- Create a new repository with an appropriate name related to the project.
- Note the repository's URL.
- Clone Your Own Repository and Clone the Original Repo:
- Open a terminal or command prompt.
- Navigate to the directory where you want to store your project.
- Clone your own repository
- Change into the newly created directory:
- Clone the original repository (rectangle-octo-happiness)
- Modify rectangle.py:
- Locate the rectangle.py file within your cloned repository.
- Make the modifications specified in the instructions (probably related to square brackets).
- Save the changes.
- Create rectangle_v1.py:
- Create a new file named rectangle_v1.py within the same directory as rectangle.py.
- Open rectangle_v1.py in a text editor.
- Implement type hints for the function(s) within this file to improve readability. Use the functions I provided rectangle.py.
- Push Changes to Your Repository:
- Navigate to your own repository's directory in the terminal.
- Stage the changes
- Commit the changes with a meaningful message
- Push the changes to your repository
P.S. Run the Code in VSCode:
- Using the Terminal: Open the integrated terminal by going to View > Terminal from the top menu. Then navigate to the folder where your Python file is located using the cd command. Finally, run your Python script by typing python filename.py, replacing filename with your actual file's name.
- Using the Run Button: At the top of the file, you might see a green triangle (play) icon. Click it to run the script. If you don't see the icon, click the Run and Debug icon on the left sidebar (looks like a bug) and then click the green play button in the top toolbar.