The purpose of this assignment is to verify that you have set up the tools used in this course. Throughout this course you will use GIT, Python, and PyCharm PRO.
Module Content:
- What is GIT? - Click Here to Find Out
- What is GIT Bash? (Bash for Windows Only) - Click Here to Find Out
- What is Bash (Linux / Mac Command Line)? Click Here to Find Out
- What is Python? - Click Here to Find Out
- What is Pycharm? - Click Here to Find Out
This is a great tutorial, it covers a lot of basic things. You don't have to watch this all this week, but it will help you a lot throughout the course.
Introduction to Python and Pycharm
In this course we will be using Pytest to test our code. If you have never written a unit test or don't understand what they are, you can read this article to explain the general idea. Unit Testing Basics
-
Install GIT for your operating system. NOTE: If you are a Windows user please also select to install GIT Bash during the installation process. You can download GIT here: Download Here
-
Install a version of Python that is equal to or greater than 3.9 installed. Please go here to download and install Python before continuing. Download Python Here
-
Signup for a students license for Pycharm Pro and Install it Signup Here, once you have signed up you will need to download and install Pycharm Pro from here. DO NOT INSTALL THE COMMUNITY EDITION YOU NEED PYCHARM PRO!
-
Open Pycharm Pro and clone the assignment repository. Open up a terminal in Pycharm, run "pip install -r requirements.txt" and then run "pytest". If pycharm shows you an error about pip / requirements when you clone the repo just skip/cancel/dismiss the error and run the command in the terminal like i said above
-
You will see that the test fails because the code does not output the expected output. You need to change the output of the program to pass the test and then submit the assignment for grading by pushing up to GitHub. To do this, you need to change the value in the test_with_pytest.py file.
-
When you your pytest passes just commit and push it back to the origin and the assignment will be automaticly graded by running the test that you run locally.