From c6a4197b8c4c19893549d525872653a1737179d8 Mon Sep 17 00:00:00 2001 From: garrett-mcclay <127245999+garrett-mcclay@users.noreply.github.com> Date: Tue, 24 Sep 2024 13:12:30 -0400 Subject: [PATCH 01/14] Added Python Installation instructions into the introduction file --- .../Introduction.md | 112 +++++++++++++++++- 1 file changed, 108 insertions(+), 4 deletions(-) diff --git a/Lesson 1 - Introduction to Python/Introduction.md b/Lesson 1 - Introduction to Python/Introduction.md index 90b57b4..0c625e6 100644 --- a/Lesson 1 - Introduction to Python/Introduction.md +++ b/Lesson 1 - Introduction to Python/Introduction.md @@ -24,10 +24,114 @@ Before you head forward, it is important to note that there are two major Python ## Downloading and Installing Python: -You can download python from here: [https://www.python.org/downloads/](https://www.python.org/downloads/) - -For a detailed tutorial on installation refer to this or any other site on the Internet: [https://realpython.com/installing-python/](https://realpython.com/installing-python/) - +1. Installing Python on Windows + + Step 1: Download Python Installer + Go to the official Python website: https://www.python.org/downloads/. + The website will automatically detect your operating system and suggest the latest version of Python for Windows. + Click Download Python 3.x.x (the latest version at the time). + + Step 2: Run the Python Installer + Once the installer has been downloaded, locate the .exe file in your Downloads folder and double-click it to launch the installer. + + Step 3: Customize Installation Options + Important: At the bottom of the installation window, check the box that says Add Python to PATH. This step ensures you can use Python from the command line or terminal. + Click Customize installation to proceed to the next step. + + Step 4: Select Optional Features + In the Optional Features screen, you can leave the default selections (such as: + Documentation: Provides access to Python documentation. + pip: Python’s package manager (important for installing additional packages). + tcl/tk and IDLE: Used for GUI applications and the IDLE development environment. + Python test suite: This is optional for testing Python itself. + Click Next. + + Step 5: Advanced Options + In the Advanced Options screen, you can leave most of the default options checked. You may want to check the following based on your preferences: + Install for all users: Choose this if you want Python installed system-wide. + Precompile standard library: This helps Python run faster. + Choose an installation location if needed (or leave it as default) and click Install. + + Step 6: Wait for the Installation to Complete + The installer will begin copying files and setting up Python on your system. Once it’s done, you’ll see a success message. Click Close to exit the installer. + + Step 7: Verify Python Installation + Open the Command Prompt by pressing Win + R, typing cmd, and pressing Enter. + In the Command Prompt, type: + python --version + This should display the installed Python version (e.g., Python 3.x.x). If it doesn't, check that Python was added to the PATH correctly. + + Step 8: Verify pip Installation + In the Command Prompt, type: + pip --version + You should see the version of pip that is installed with Python. + +2. Installing Python on macOS + Step 1: Check Pre-installed Python Version (Optional) + macOS comes with Python 2.x pre-installed. To check which version is installed, open Terminal (press Cmd + Space, type Terminal, and press Enter), and type: + python --version + This will likely show Python 2.x. + + Step 2: Download Python Installer + Go to the official Python website: https://www.python.org/downloads/. + The website will detect your operating system and show the latest version for macOS. Click Download Python 3.x.x. + + Step 3: Install Python + Locate the .pkg file in your Downloads folder and double-click it to launch the installer. + Follow the on-screen instructions: + Click Continue when the installer window opens. + Agree to the License Agreement. + Select the disk where you want to install Python, and click Install. + + Step 4: Complete Installation + The installer will copy files to your system. Once it's finished, click Close. + + Step 5: Verify Python Installation + Open Terminal and type: + python3 --version + You should see the installed version of Python 3. + + Step 6: Verify pip Installation + In the Terminal, type: + pip3 --version + If pip was installed correctly, it should display the version. + +3. Installing Python on Linux (Ubuntu/Debian-based) + Most Linux distributions come with Python pre-installed, but it might be an older version (usually Python 2). Here’s how to install Python 3.x. + + Step 1: Update the Package List + Open a terminal (Ctrl + Alt + T on most Linux systems), and update your package manager: + sudo apt update + + Step 2: Install Python 3 + Install Python 3 by running the following command: + sudo apt install python3 + + Step 3: Verify Python Installation + Once the installation is complete, verify that Python is installed: + python3 --version + This should display the installed version of Python 3. + + Step 4: Install pip + To install pip (Python’s package manager), use the following command: + sudo apt install python3-pip + + Step 5: Verify pip Installation + Check if pip is installed correctly: + pip3 --version + +4. Installing Python on Other Linux Distros (Fedora, Arch, etc.) + Here are commands for other popular Linux distros: + + For Fedora: + sudo dnf install python3 + +For Arch Linux: + sudo pacman -S python + +Once installed, you can verify Python and pip installations with: + python3 --version + pip3 --version ## Python Capabilities: From 46f614fbccb538e0a5b72104d7c1cd5a09cfaadf Mon Sep 17 00:00:00 2001 From: garrett-mcclay <127245999+garrett-mcclay@users.noreply.github.com> Date: Tue, 24 Sep 2024 13:17:48 -0400 Subject: [PATCH 02/14] Update Introduction.md --- .../Introduction.md | 66 +++++++++---------- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/Lesson 1 - Introduction to Python/Introduction.md b/Lesson 1 - Introduction to Python/Introduction.md index 0c625e6..4c8435c 100644 --- a/Lesson 1 - Introduction to Python/Introduction.md +++ b/Lesson 1 - Introduction to Python/Introduction.md @@ -26,45 +26,45 @@ Before you head forward, it is important to note that there are two major Python 1. Installing Python on Windows - Step 1: Download Python Installer - Go to the official Python website: https://www.python.org/downloads/. - The website will automatically detect your operating system and suggest the latest version of Python for Windows. - Click Download Python 3.x.x (the latest version at the time). + * Step 1: Download Python Installer + * Go to the official Python website: https://www.python.org/downloads/. + * The website will automatically detect your operating system and suggest the latest version of Python for Windows. + * Click Download Python 3.x.x (the latest version at the time). - Step 2: Run the Python Installer - Once the installer has been downloaded, locate the .exe file in your Downloads folder and double-click it to launch the installer. + * Step 2: Run the Python Installer + * Once the installer has been downloaded, locate the .exe file in your Downloads folder and double-click it to launch the installer. - Step 3: Customize Installation Options - Important: At the bottom of the installation window, check the box that says Add Python to PATH. This step ensures you can use Python from the command line or terminal. - Click Customize installation to proceed to the next step. + * Step 3: Customize Installation Options + * Important: At the bottom of the installation window, check the box that says Add Python to PATH. This step ensures you can use Python from the command line or terminal. + * Click Customize installation to proceed to the next step. - Step 4: Select Optional Features - In the Optional Features screen, you can leave the default selections (such as: - Documentation: Provides access to Python documentation. - pip: Python’s package manager (important for installing additional packages). - tcl/tk and IDLE: Used for GUI applications and the IDLE development environment. - Python test suite: This is optional for testing Python itself. - Click Next. + * Step 4: Select Optional Features + * In the Optional Features screen, you can leave the default selections (such as: + * Documentation: Provides access to Python documentation. + * pip: Python’s package manager (important for installing additional packages). + * tcl/tk and IDLE: Used for GUI applications and the IDLE development environment. + * Python test suite: This is optional for testing Python itself. + * Click Next. - Step 5: Advanced Options - In the Advanced Options screen, you can leave most of the default options checked. You may want to check the following based on your preferences: - Install for all users: Choose this if you want Python installed system-wide. - Precompile standard library: This helps Python run faster. - Choose an installation location if needed (or leave it as default) and click Install. + * Step 5: Advanced Options + * In the Advanced Options screen, you can leave most of the default options checked. You may want to check the following based on your preferences: + * Install for all users: Choose this if you want Python installed system-wide. + * Precompile standard library: This helps Python run faster. + * Choose an installation location if needed (or leave it as default) and click Install. - Step 6: Wait for the Installation to Complete - The installer will begin copying files and setting up Python on your system. Once it’s done, you’ll see a success message. Click Close to exit the installer. + * Step 6: Wait for the Installation to Complete + * The installer will begin copying files and setting up Python on your system. Once it’s done, you’ll see a success message. Click Close to exit the installer. - Step 7: Verify Python Installation - Open the Command Prompt by pressing Win + R, typing cmd, and pressing Enter. - In the Command Prompt, type: - python --version - This should display the installed Python version (e.g., Python 3.x.x). If it doesn't, check that Python was added to the PATH correctly. - - Step 8: Verify pip Installation - In the Command Prompt, type: - pip --version - You should see the version of pip that is installed with Python. + * Step 7: Verify Python Installation + * Open the Command Prompt by pressing Win + R, typing cmd, and pressing Enter. + * In the Command Prompt, type: + * python --version + * This should display the installed Python version (e.g., Python 3.x.x). If it doesn't, check that Python was added to the PATH correctly. + + * Step 8: Verify pip Installation + * In the Command Prompt, type: + * pip --version + * You should see the version of pip that is installed with Python. 2. Installing Python on macOS Step 1: Check Pre-installed Python Version (Optional) From 9a6b05c7d66e91201e3536a74aa333feaafd2765 Mon Sep 17 00:00:00 2001 From: garrett-mcclay <127245999+garrett-mcclay@users.noreply.github.com> Date: Tue, 24 Sep 2024 13:21:58 -0400 Subject: [PATCH 03/14] Update Introduction.md --- .../Introduction.md | 100 +++++++++--------- 1 file changed, 50 insertions(+), 50 deletions(-) diff --git a/Lesson 1 - Introduction to Python/Introduction.md b/Lesson 1 - Introduction to Python/Introduction.md index 4c8435c..7ec9849 100644 --- a/Lesson 1 - Introduction to Python/Introduction.md +++ b/Lesson 1 - Introduction to Python/Introduction.md @@ -67,71 +67,71 @@ Before you head forward, it is important to note that there are two major Python * You should see the version of pip that is installed with Python. 2. Installing Python on macOS - Step 1: Check Pre-installed Python Version (Optional) - macOS comes with Python 2.x pre-installed. To check which version is installed, open Terminal (press Cmd + Space, type Terminal, and press Enter), and type: - python --version - This will likely show Python 2.x. - - Step 2: Download Python Installer - Go to the official Python website: https://www.python.org/downloads/. - The website will detect your operating system and show the latest version for macOS. Click Download Python 3.x.x. + * Step 1: Check Pre-installed Python Version (Optional) + * macOS comes with Python 2.x pre-installed. To check which version is installed, open Terminal (press Cmd + Space, type Terminal, and press Enter), and type: + * python --version + * This will likely show Python 2.x. + + * Step 2: Download Python Installer + * Go to the official Python website: https://www.python.org/downloads/. + * The website will detect your operating system and show the latest version for macOS. Click Download Python 3.x.x. - Step 3: Install Python - Locate the .pkg file in your Downloads folder and double-click it to launch the installer. - Follow the on-screen instructions: - Click Continue when the installer window opens. - Agree to the License Agreement. - Select the disk where you want to install Python, and click Install. + * Step 3: Install Python + * Locate the .pkg file in your Downloads folder and double-click it to launch the installer. + * Follow the on-screen instructions: + * Click Continue when the installer window opens. + * Agree to the License Agreement. + * Select the disk where you want to install Python, and click Install. - Step 4: Complete Installation - The installer will copy files to your system. Once it's finished, click Close. + * Step 4: Complete Installation + * installer will copy files to your system. Once it's finished, click Close. - Step 5: Verify Python Installation - Open Terminal and type: - python3 --version - You should see the installed version of Python 3. + * Step 5: Verify Python Installation + * Open Terminal and type: + * python3 --version + * You should see the installed version of Python 3. - Step 6: Verify pip Installation - In the Terminal, type: - pip3 --version - If pip was installed correctly, it should display the version. + * Step 6: Verify pip Installation + * In the Terminal, type: + * pip3 --version + * If pip was installed correctly, it should display the version. 3. Installing Python on Linux (Ubuntu/Debian-based) - Most Linux distributions come with Python pre-installed, but it might be an older version (usually Python 2). Here’s how to install Python 3.x. + * Most Linux distributions come with Python pre-installed, but it might be an older version (usually Python 2). Here’s how to install Python 3.x. - Step 1: Update the Package List - Open a terminal (Ctrl + Alt + T on most Linux systems), and update your package manager: - sudo apt update + * Step 1: Update the Package List + * Open a terminal (Ctrl + Alt + T on most Linux systems), and update your package manager: + * sudo apt update - Step 2: Install Python 3 - Install Python 3 by running the following command: - sudo apt install python3 + * Step 2: Install Python 3 + * Install Python 3 by running the following command: + * sudo apt install python3 - Step 3: Verify Python Installation - Once the installation is complete, verify that Python is installed: - python3 --version - This should display the installed version of Python 3. - - Step 4: Install pip - To install pip (Python’s package manager), use the following command: - sudo apt install python3-pip + * Step 3: Verify Python Installation + * Once the installation is complete, verify that Python is installed: + * python3 --version + * This should display the installed version of Python 3. + + * Step 4: Install pip + * To install pip (Python’s package manager), use the following command: + * sudo apt install python3-pip - Step 5: Verify pip Installation - Check if pip is installed correctly: - pip3 --version + * Step 5: Verify pip Installation + * Check if pip is installed correctly: + * pip3 --version 4. Installing Python on Other Linux Distros (Fedora, Arch, etc.) - Here are commands for other popular Linux distros: + * Here are commands for other popular Linux distros: - For Fedora: - sudo dnf install python3 + * For Fedora: + * sudo dnf install python3 -For Arch Linux: - sudo pacman -S python + * For Arch Linux: + * sudo pacman -S python -Once installed, you can verify Python and pip installations with: - python3 --version - pip3 --version + * Once installed, you can verify Python and pip installations with: + * python3 --version + * pip3 --version ## Python Capabilities: From a4cd11cae4426317cf06dacc533c527fa6c4a04a Mon Sep 17 00:00:00 2001 From: garrett-mcclay <127245999+garrett-mcclay@users.noreply.github.com> Date: Tue, 24 Sep 2024 14:01:24 -0400 Subject: [PATCH 04/14] Create GettingStarted.md --- .../GettingStarted.md | 209 ++++++++++++++++++ 1 file changed, 209 insertions(+) create mode 100644 Lesson 1 - Introduction to Python/GettingStarted.md diff --git a/Lesson 1 - Introduction to Python/GettingStarted.md b/Lesson 1 - Introduction to Python/GettingStarted.md new file mode 100644 index 0000000..8e7fa54 --- /dev/null +++ b/Lesson 1 - Introduction to Python/GettingStarted.md @@ -0,0 +1,209 @@ +## Downloading and Installing Python: + +1. Installing Python on Windows + + * Step 1: Download Python Installer + * Go to the official Python website: https://www.python.org/downloads/. + * The website will automatically detect your operating system and suggest the latest version of Python for Windows. + * Click Download Python 3.x.x (the latest version at the time). + + * Step 2: Run the Python Installer + * Once the installer has been downloaded, locate the .exe file in your Downloads folder and double-click it to launch the installer. + + * Step 3: Customize Installation Options + * Important: At the bottom of the installation window, check the box that says Add Python to PATH. This step ensures you can use Python from the command line or terminal. + * Click Customize installation to proceed to the next step. + + * Step 4: Select Optional Features + * In the Optional Features screen, you can leave the default selections (such as: + * Documentation: Provides access to Python documentation. + * pip: Python’s package manager (important for installing additional packages). + * tcl/tk and IDLE: Used for GUI applications and the IDLE development environment. + * Python test suite: This is optional for testing Python itself. + * Click Next. + + * Step 5: Advanced Options + * In the Advanced Options screen, you can leave most of the default options checked. You may want to check the following based on your preferences: + * Install for all users: Choose this if you want Python installed system-wide. + * Precompile standard library: This helps Python run faster. + * Choose an installation location if needed (or leave it as default) and click Install. + + * Step 6: Wait for the Installation to Complete + * The installer will begin copying files and setting up Python on your system. Once it’s done, you’ll see a success message. Click Close to exit the installer. + + * Step 7: Verify Python Installation + * Open the Command Prompt by pressing Win + R, typing cmd, and pressing Enter. + * In the Command Prompt, type: + * python --version + * This should display the installed Python version (e.g., Python 3.x.x). If it doesn't, check that Python was added to the PATH correctly. + + * Step 8: Verify pip Installation + * In the Command Prompt, type: + * pip --version + * You should see the version of pip that is installed with Python. + +2. Installing Python on macOS + * Step 1: Check Pre-installed Python Version (Optional) + * macOS comes with Python 2.x pre-installed. To check which version is installed, open Terminal (press Cmd + Space, type Terminal, and press Enter), and type: + * python --version + * This will likely show Python 2.x. + + * Step 2: Download Python Installer + * Go to the official Python website: https://www.python.org/downloads/. + * The website will detect your operating system and show the latest version for macOS. Click Download Python 3.x.x. + + * Step 3: Install Python + * Locate the .pkg file in your Downloads folder and double-click it to launch the installer. + * Follow the on-screen instructions: + * Click Continue when the installer window opens. + * Agree to the License Agreement. + * Select the disk where you want to install Python, and click Install. + + * Step 4: Complete Installation + * installer will copy files to your system. Once it's finished, click Close. + + * Step 5: Verify Python Installation + * Open Terminal and type: + * python3 --version + * You should see the installed version of Python 3. + + * Step 6: Verify pip Installation + * In the Terminal, type: + * pip3 --version + * If pip was installed correctly, it should display the version. + +3. Installing Python on Linux (Ubuntu/Debian-based) + * Most Linux distributions come with Python pre-installed, but it might be an older version (usually Python 2). Here’s how to install Python 3.x. + + * Step 1: Update the Package List + * Open a terminal (Ctrl + Alt + T on most Linux systems), and update your package manager: + * sudo apt update + + * Step 2: Install Python 3 + * Install Python 3 by running the following command: + * sudo apt install python3 + + * Step 3: Verify Python Installation + * Once the installation is complete, verify that Python is installed: + * python3 --version + * This should display the installed version of Python 3. + + * Step 4: Install pip + * To install pip (Python’s package manager), use the following command: + * sudo apt install python3-pip + + * Step 5: Verify pip Installation + * Check if pip is installed correctly: + * pip3 --version + +4. Installing Python on Other Linux Distros (Fedora, Arch, etc.) + * Here are commands for other popular Linux distros: + + * For Fedora: + * sudo dnf install python3 + + * For Arch Linux: + * sudo pacman -S python + + * Once installed, you can verify Python and pip installations with: + * python3 --version + * pip3 --version + +## Downloading and Installing IDE (Optional) + +1. Installing PyCharm on Windows + * Step 1: Download PyCharm + * Go to the official PyCharm website: JetBrains PyCharm. + * Choose Windows as the platform. + * You’ll see two versions: Professional (paid) and Community (free, open-source). Select the one you prefer and click Download. + + * Step 2: Run the Installer + * Once the download is complete, locate the .exe file in your downloads folder and double-click it to run the installer. + + * Step 3: Begin the Installation Process + * A setup wizard will appear. Click Next to start the installation. + * Choose the installation path where you want PyCharm to be installed, or leave the default location and click Next. + + * Step 4: Installation Options + * You'll see a list of installation options: + * Create Desktop Shortcut: Choose if you want a desktop icon for PyCharm. + * Update PATH variable: This allows you to launch PyCharm from the command line. + * .py file association: Choose this option if you want PyCharm to open .py files by default. + * Install JRE x86: Choose this if you do not have Java Runtime Environment (JRE) installed. + + * Step 5: Install PyCharm + * Click Install to begin the installation process. + * Wait for the installation to complete. + + * Step 6: Finish Installation + * Once the installation is complete, you’ll get an option to Run PyCharm. If you want to start using it right away, check this box and click Finish. + + * Step 7: Configure PyCharm + * When PyCharm launches for the first time, it will prompt you to import settings from a previous version or start fresh. Choose as per your requirement and click OK. + * You can also choose a UI theme (Light/Dark) during the first-time setup. + +2. Installing PyCharm on macOS + * Step 1: Download PyCharm + * Go to the official PyCharm website: JetBrains PyCharm. + * Choose macOS as the platform and download the version (Professional or Community) you need. + + * Step 2: Install PyCharm + * Once the download completes, locate the .dmg file in your Downloads folder and double-click it. + * A window will pop up, prompting you to drag the PyCharm icon into the Applications folder. + * Drag and drop the PyCharm icon into the Applications folder. + + * Step 3: Launch PyCharm + * Open your Applications folder and double-click PyCharm to launch it. + * If you see a warning about an unverified developer, click Open (you may need to go to System Preferences > Security & Privacy to allow this). + + * Step 4: Initial Setup + * Once PyCharm is launched, it will ask if you want to import settings or start with default settings. Choose your preferred option. + * You will also get to choose a Light or Dark theme during the setup. + +3. Installing PyCharm on Linux + + * Step 1: Download PyCharm + * Visit the official PyCharm website: JetBrains PyCharm. + * Choose Linux as the platform and download the version (Professional or Community) you need. + * You will download a .tar.gz file. + + * Step 2: Extract the File + * Open the terminal and navigate to the directory where the downloaded file is located: + * cd ~/Downloads + * Extract the .tar.gz file using the following command: + * tar -xzf pycharm-community-*.tar.gz + + * Step 3: Move PyCharm to the Desired Directory + * After extraction, move the PyCharm folder to a suitable directory (like /opt): + * sudo mv pycharm-community-* /opt/pycharm + + * Step 4: Run PyCharm + * To start PyCharm, use the following commands: + * cd /opt/pycharm/bin + * ./pycharm.sh + + * Step 5: Create a Desktop Entry (Optional) + * To easily launch PyCharm from the desktop or application launcher, you can create a desktop entry. + * In PyCharm, go to Tools > Create Desktop Entry. This will automatically create a launcher in your application menu. + + * Step 6: Initial Setup + * When PyCharm first starts, it will ask if you want to import settings from a previous version or use default settings. + * You'll also be prompted to choose a UI theme. + +4. Configuring Python Interpreter in PyCharm + + * Regardless of the platform you're using, once PyCharm is installed, you need to configure the Python interpreter. + + * Step 1: Open or Create a New Project + * Click New Project or Open to create/open a Python project. + + * Step 2: Configure Python Interpreter + * Go to File > Settings (on Windows/Linux) or PyCharm > Preferences (on macOS). + * Navigate to Project: [project_name] > Python Interpreter. + * Click the gear icon and choose Add. + * Select your desired Python interpreter from the list or browse to the location where your Python interpreter is installed (e.g., a virtual environment, Anaconda, or system Python). + * Click OK to apply the settings. + + * Step 3: Verify Installation + * After selecting the interpreter, you can create a Python file in your project, write a simple script like print("Hello, World!"), and run it to verify that the interpreter is set up correctly. + From f2064972b2939f8d944340cbf246faad714fd2fd Mon Sep 17 00:00:00 2001 From: garrett-mcclay <127245999+garrett-mcclay@users.noreply.github.com> Date: Tue, 24 Sep 2024 14:04:42 -0400 Subject: [PATCH 05/14] Update GettingStarted.md --- Lesson 1 - Introduction to Python/GettingStarted.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lesson 1 - Introduction to Python/GettingStarted.md b/Lesson 1 - Introduction to Python/GettingStarted.md index 8e7fa54..dbccd4f 100644 --- a/Lesson 1 - Introduction to Python/GettingStarted.md +++ b/Lesson 1 - Introduction to Python/GettingStarted.md @@ -23,7 +23,7 @@ * Click Next. * Step 5: Advanced Options - * In the Advanced Options screen, you can leave most of the default options checked. You may want to check the following based on your preferences: + * the Advanced Options screen, you can leave most of the default options checked. You may want to check the following based on your preferences: * Install for all users: Choose this if you want Python installed system-wide. * Precompile standard library: This helps Python run faster. * Choose an installation location if needed (or leave it as default) and click Install. From 5e4dc2542be8599821209d8e1b674cebdb4e660f Mon Sep 17 00:00:00 2001 From: garrett-mcclay <127245999+garrett-mcclay@users.noreply.github.com> Date: Tue, 24 Sep 2024 14:07:24 -0400 Subject: [PATCH 06/14] Update GettingStarted.md --- Lesson 1 - Introduction to Python/GettingStarted.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Lesson 1 - Introduction to Python/GettingStarted.md b/Lesson 1 - Introduction to Python/GettingStarted.md index dbccd4f..ab0ab86 100644 --- a/Lesson 1 - Introduction to Python/GettingStarted.md +++ b/Lesson 1 - Introduction to Python/GettingStarted.md @@ -132,15 +132,15 @@ * Install JRE x86: Choose this if you do not have Java Runtime Environment (JRE) installed. * Step 5: Install PyCharm - * Click Install to begin the installation process. - * Wait for the installation to complete. + * Click Install to begin the installation process. + * Wait for the installation to complete. * Step 6: Finish Installation - * Once the installation is complete, you’ll get an option to Run PyCharm. If you want to start using it right away, check this box and click Finish. + * Once the installation is complete, you’ll get an option to Run PyCharm. If you want to start using it right away, check this box and click Finish. * Step 7: Configure PyCharm - * When PyCharm launches for the first time, it will prompt you to import settings from a previous version or start fresh. Choose as per your requirement and click OK. - * You can also choose a UI theme (Light/Dark) during the first-time setup. + * When PyCharm launches for the first time, it will prompt you to import settings from a previous version or start fresh. Choose as per your requirement and click OK. + * You can also choose a UI theme (Light/Dark) during the first-time setup. 2. Installing PyCharm on macOS * Step 1: Download PyCharm From 9206cf68704298940ac4dec207ed3cbe02bc142f Mon Sep 17 00:00:00 2001 From: garrett-mcclay <127245999+garrett-mcclay@users.noreply.github.com> Date: Tue, 24 Sep 2024 14:21:38 -0400 Subject: [PATCH 07/14] Rename GettingStarted.md to (Optional)Installing ID and GitHub Basics.md --- ...ingStarted.md => (Optional)Installing ID and GitHub Basics.md} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename Lesson 1 - Introduction to Python/{GettingStarted.md => (Optional)Installing ID and GitHub Basics.md} (100%) diff --git a/Lesson 1 - Introduction to Python/GettingStarted.md b/Lesson 1 - Introduction to Python/(Optional)Installing ID and GitHub Basics.md similarity index 100% rename from Lesson 1 - Introduction to Python/GettingStarted.md rename to Lesson 1 - Introduction to Python/(Optional)Installing ID and GitHub Basics.md From aee1bf98ac90b6377aa60e0f526bae9f7cc0dd98 Mon Sep 17 00:00:00 2001 From: garrett-mcclay <127245999+garrett-mcclay@users.noreply.github.com> Date: Tue, 24 Sep 2024 14:22:02 -0400 Subject: [PATCH 08/14] Rename (Optional)Installing ID and GitHub Basics.md to Optional. Installing ID and GitHub Basics.md --- ...Hub Basics.md => Optional. Installing ID and GitHub Basics.md} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename Lesson 1 - Introduction to Python/{(Optional)Installing ID and GitHub Basics.md => Optional. Installing ID and GitHub Basics.md} (100%) diff --git a/Lesson 1 - Introduction to Python/(Optional)Installing ID and GitHub Basics.md b/Lesson 1 - Introduction to Python/Optional. Installing ID and GitHub Basics.md similarity index 100% rename from Lesson 1 - Introduction to Python/(Optional)Installing ID and GitHub Basics.md rename to Lesson 1 - Introduction to Python/Optional. Installing ID and GitHub Basics.md From 079ae0236e7fe5279f58d6050e6245809281dd9a Mon Sep 17 00:00:00 2001 From: garrett-mcclay <127245999+garrett-mcclay@users.noreply.github.com> Date: Tue, 24 Sep 2024 14:30:57 -0400 Subject: [PATCH 09/14] Update and rename Optional. Installing ID and GitHub Basics.md to Optional Installing IDE and GitHub Basics.md --- ...ional Installing IDE and GitHub Basics.md} | 186 +++++++----------- 1 file changed, 75 insertions(+), 111 deletions(-) rename Lesson 1 - Introduction to Python/{Optional. Installing ID and GitHub Basics.md => Optional Installing IDE and GitHub Basics.md} (50%) diff --git a/Lesson 1 - Introduction to Python/Optional. Installing ID and GitHub Basics.md b/Lesson 1 - Introduction to Python/Optional Installing IDE and GitHub Basics.md similarity index 50% rename from Lesson 1 - Introduction to Python/Optional. Installing ID and GitHub Basics.md rename to Lesson 1 - Introduction to Python/Optional Installing IDE and GitHub Basics.md index ab0ab86..dd32124 100644 --- a/Lesson 1 - Introduction to Python/Optional. Installing ID and GitHub Basics.md +++ b/Lesson 1 - Introduction to Python/Optional Installing IDE and GitHub Basics.md @@ -1,114 +1,3 @@ -## Downloading and Installing Python: - -1. Installing Python on Windows - - * Step 1: Download Python Installer - * Go to the official Python website: https://www.python.org/downloads/. - * The website will automatically detect your operating system and suggest the latest version of Python for Windows. - * Click Download Python 3.x.x (the latest version at the time). - - * Step 2: Run the Python Installer - * Once the installer has been downloaded, locate the .exe file in your Downloads folder and double-click it to launch the installer. - - * Step 3: Customize Installation Options - * Important: At the bottom of the installation window, check the box that says Add Python to PATH. This step ensures you can use Python from the command line or terminal. - * Click Customize installation to proceed to the next step. - - * Step 4: Select Optional Features - * In the Optional Features screen, you can leave the default selections (such as: - * Documentation: Provides access to Python documentation. - * pip: Python’s package manager (important for installing additional packages). - * tcl/tk and IDLE: Used for GUI applications and the IDLE development environment. - * Python test suite: This is optional for testing Python itself. - * Click Next. - - * Step 5: Advanced Options - * the Advanced Options screen, you can leave most of the default options checked. You may want to check the following based on your preferences: - * Install for all users: Choose this if you want Python installed system-wide. - * Precompile standard library: This helps Python run faster. - * Choose an installation location if needed (or leave it as default) and click Install. - - * Step 6: Wait for the Installation to Complete - * The installer will begin copying files and setting up Python on your system. Once it’s done, you’ll see a success message. Click Close to exit the installer. - - * Step 7: Verify Python Installation - * Open the Command Prompt by pressing Win + R, typing cmd, and pressing Enter. - * In the Command Prompt, type: - * python --version - * This should display the installed Python version (e.g., Python 3.x.x). If it doesn't, check that Python was added to the PATH correctly. - - * Step 8: Verify pip Installation - * In the Command Prompt, type: - * pip --version - * You should see the version of pip that is installed with Python. - -2. Installing Python on macOS - * Step 1: Check Pre-installed Python Version (Optional) - * macOS comes with Python 2.x pre-installed. To check which version is installed, open Terminal (press Cmd + Space, type Terminal, and press Enter), and type: - * python --version - * This will likely show Python 2.x. - - * Step 2: Download Python Installer - * Go to the official Python website: https://www.python.org/downloads/. - * The website will detect your operating system and show the latest version for macOS. Click Download Python 3.x.x. - - * Step 3: Install Python - * Locate the .pkg file in your Downloads folder and double-click it to launch the installer. - * Follow the on-screen instructions: - * Click Continue when the installer window opens. - * Agree to the License Agreement. - * Select the disk where you want to install Python, and click Install. - - * Step 4: Complete Installation - * installer will copy files to your system. Once it's finished, click Close. - - * Step 5: Verify Python Installation - * Open Terminal and type: - * python3 --version - * You should see the installed version of Python 3. - - * Step 6: Verify pip Installation - * In the Terminal, type: - * pip3 --version - * If pip was installed correctly, it should display the version. - -3. Installing Python on Linux (Ubuntu/Debian-based) - * Most Linux distributions come with Python pre-installed, but it might be an older version (usually Python 2). Here’s how to install Python 3.x. - - * Step 1: Update the Package List - * Open a terminal (Ctrl + Alt + T on most Linux systems), and update your package manager: - * sudo apt update - - * Step 2: Install Python 3 - * Install Python 3 by running the following command: - * sudo apt install python3 - - * Step 3: Verify Python Installation - * Once the installation is complete, verify that Python is installed: - * python3 --version - * This should display the installed version of Python 3. - - * Step 4: Install pip - * To install pip (Python’s package manager), use the following command: - * sudo apt install python3-pip - - * Step 5: Verify pip Installation - * Check if pip is installed correctly: - * pip3 --version - -4. Installing Python on Other Linux Distros (Fedora, Arch, etc.) - * Here are commands for other popular Linux distros: - - * For Fedora: - * sudo dnf install python3 - - * For Arch Linux: - * sudo pacman -S python - - * Once installed, you can verify Python and pip installations with: - * python3 --version - * pip3 --version - ## Downloading and Installing IDE (Optional) 1. Installing PyCharm on Windows @@ -207,3 +96,78 @@ * Step 3: Verify Installation * After selecting the interpreter, you can create a Python file in your project, write a simple script like print("Hello, World!"), and run it to verify that the interpreter is set up correctly. +## GitHub Basics + +1. Forking a Repository on GitHub + * Forking creates a personal copy of someone else's repository on your GitHub account. Here are the steps: + * Step 1: Log in to GitHub + * Go to GitHub and log in to your account. If you don't have one, create an account first. + * Step 2: Find the Repository to Fork + * Navigate to the repository you want to fork by searching for it or using a direct link. + * Step 3: Fork the Repository + * At the top-right corner of the repository page, click the Fork button. This will create a copy of the repository under your GitHub account. + * Once you've forked the repository, you’ll have a personal copy of it in your account. Now, let’s move on to cloning it. + +2. Cloning the Forked Repository + * Cloning a repository means downloading it to your local machine so you can work on it using your IDE (PyCharm in this case). + + * Step 1: Get the Clone URL + * After forking, go to your GitHub profile and find the forked repository. + * Click on the Code button, which will show a dropdown with several clone options (HTTPS, SSH, or GitHub CLI). Copy the URL (choose HTTPS for simplicity unless you are using SSH). + * Step 2: Open PyCharm + * Launch PyCharm. + * Step 3: Start a New Project from Version Control + * On the PyCharm start screen, select Get from VCS (Version Control System). + * If PyCharm is already open, go to File > New > Project from Version Control. + * Step 4: Paste the Repository URL + * In the window that appears, paste the repository URL you copied from GitHub (e.g., https://github.com/your-username/repo-name.git). + * Step 5: Choose a Directory to Clone Into + * Select the directory on your local machine where you want the repository to be cloned. PyCharm will create a project folder for it. + * Click Clone. + * Step 6: Wait for the Repository to Download + * PyCharm will clone the repository, download its contents, and set up the project. +3. Configuring and Managing Your Project in PyCharm + * Once the repository is cloned into PyCharm, you'll need to configure the environment and manage your workflow. + + * Step 1: Configure the Python Interpreter + * Go to File > Settings > Project: [project_name] > Python Interpreter. + * If the project requires a specific Python version or environment, you can set it here. + * You can add a virtual environment or use an existing interpreter like Anaconda. + * Step 2: Pull Latest Changes (Optional) + * If the original repository (the upstream repo) is being updated frequently, you may want to keep your fork updated. + * In PyCharm, go to VCS > Git > Pull to pull the latest changes from your fork (or the original repository if you've added it as a remote). + * Step 3: Start Coding! + * At this point, the repository is ready in your IDE. You can now open files, edit code, and write new features. +4. Making Changes, Committing, and Pushing + * Once you make changes to the repository, you’ll want to commit and push them to your fork on GitHub. + + * Step 1: Make Your Code Changes + * Open any file, make the necessary changes, and save them. + * Step 2: Commit the Changes + * Go to VCS > Commit (or use the keyboard shortcut Ctrl+K on Windows/Linux or Cmd+K on macOS). + * In the commit dialog box, you can: + * Write a commit message describing the changes. + * Select the files you want to include in the commit (if you edited multiple files). + * Optionally run a code analysis or reformat the code before committing. + * Once you’ve filled out the commit message and selected files, click Commit. + * Step 3: Push Your Changes to GitHub + * To push the committed changes to your fork on GitHub, go to VCS > Git > Push (or use the shortcut Ctrl+Shift+K on Windows/Linux or Cmd+Shift+K on macOS). + * PyCharm will push the changes to the remote repository. +5. Keeping Your Fork Up to Date (Optional) + * If the original repository (referred to as upstream) is actively maintained, you may want to pull in changes from the original project into your fork. + + * Step 1: Add the Original Repository as an Upstream Remote + * Open the terminal in PyCharm by going to View > Tool Windows > Terminal. + + * Use the following command to add the upstream repository (the original repository you forked from) as a remote: + * git remote add upstream https://github.com/original-owner/repository.git + * Step 2: Fetch and Merge Changes + * To fetch updates from the upstream repository and merge them into your local copy, run: + * git fetch upstream + * git merge upstream/main + * Replace main with the branch name if it's different (e.g., master). + + * Step 3: Push Updates to Your Fork + * Once you've merged the changes, push the updated code to your fork on GitHub: + * git push origin main + From f32117211002c6bfa10d4af1121934d84c1caeaa Mon Sep 17 00:00:00 2001 From: garrett-mcclay <127245999+garrett-mcclay@users.noreply.github.com> Date: Tue, 24 Sep 2024 14:32:08 -0400 Subject: [PATCH 10/14] Update Optional Installing IDE and GitHub Basics.md --- .../Optional Installing IDE and GitHub Basics.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lesson 1 - Introduction to Python/Optional Installing IDE and GitHub Basics.md b/Lesson 1 - Introduction to Python/Optional Installing IDE and GitHub Basics.md index dd32124..dcf125c 100644 --- a/Lesson 1 - Introduction to Python/Optional Installing IDE and GitHub Basics.md +++ b/Lesson 1 - Introduction to Python/Optional Installing IDE and GitHub Basics.md @@ -138,7 +138,7 @@ * In PyCharm, go to VCS > Git > Pull to pull the latest changes from your fork (or the original repository if you've added it as a remote). * Step 3: Start Coding! * At this point, the repository is ready in your IDE. You can now open files, edit code, and write new features. -4. Making Changes, Committing, and Pushing +4. Making Changes, Committing, and Pushing (Optional) * Once you make changes to the repository, you’ll want to commit and push them to your fork on GitHub. * Step 1: Make Your Code Changes From f925d5799df64af95c38dc9a1f5159f76fbc5065 Mon Sep 17 00:00:00 2001 From: garrett-mcclay <127245999+garrett-mcclay@users.noreply.github.com> Date: Tue, 24 Sep 2024 14:34:29 -0400 Subject: [PATCH 11/14] Update Optional Installing IDE and GitHub Basics.md --- ...tional Installing IDE and GitHub Basics.md | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/Lesson 1 - Introduction to Python/Optional Installing IDE and GitHub Basics.md b/Lesson 1 - Introduction to Python/Optional Installing IDE and GitHub Basics.md index dcf125c..43d606e 100644 --- a/Lesson 1 - Introduction to Python/Optional Installing IDE and GitHub Basics.md +++ b/Lesson 1 - Introduction to Python/Optional Installing IDE and GitHub Basics.md @@ -153,21 +153,4 @@ * Step 3: Push Your Changes to GitHub * To push the committed changes to your fork on GitHub, go to VCS > Git > Push (or use the shortcut Ctrl+Shift+K on Windows/Linux or Cmd+Shift+K on macOS). * PyCharm will push the changes to the remote repository. -5. Keeping Your Fork Up to Date (Optional) - * If the original repository (referred to as upstream) is actively maintained, you may want to pull in changes from the original project into your fork. - - * Step 1: Add the Original Repository as an Upstream Remote - * Open the terminal in PyCharm by going to View > Tool Windows > Terminal. - - * Use the following command to add the upstream repository (the original repository you forked from) as a remote: - * git remote add upstream https://github.com/original-owner/repository.git - * Step 2: Fetch and Merge Changes - * To fetch updates from the upstream repository and merge them into your local copy, run: - * git fetch upstream - * git merge upstream/main - * Replace main with the branch name if it's different (e.g., master). - - * Step 3: Push Updates to Your Fork - * Once you've merged the changes, push the updated code to your fork on GitHub: - * git push origin main - + From 0f8c6f1185ffa4dfc9aee96f98d751e5eaf45883 Mon Sep 17 00:00:00 2001 From: garrett-mcclay <127245999+garrett-mcclay@users.noreply.github.com> Date: Tue, 24 Sep 2024 14:44:53 -0400 Subject: [PATCH 12/14] Update Optional Installing IDE and GitHub Basics.md --- .../Optional Installing IDE and GitHub Basics.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Lesson 1 - Introduction to Python/Optional Installing IDE and GitHub Basics.md b/Lesson 1 - Introduction to Python/Optional Installing IDE and GitHub Basics.md index 43d606e..f48589d 100644 --- a/Lesson 1 - Introduction to Python/Optional Installing IDE and GitHub Basics.md +++ b/Lesson 1 - Introduction to Python/Optional Installing IDE and GitHub Basics.md @@ -1,3 +1,5 @@ +The following is not necessary for the completion of this course, however could be benficial if you plan to continue working with python after completing this course. + ## Downloading and Installing IDE (Optional) 1. Installing PyCharm on Windows From 748c346159114358cf1e62c4d45fafb849777a52 Mon Sep 17 00:00:00 2001 From: garrett-mcclay <127245999+garrett-mcclay@users.noreply.github.com> Date: Tue, 24 Sep 2024 14:45:50 -0400 Subject: [PATCH 13/14] Update Optional Installing IDE and GitHub Basics.md --- .../Optional Installing IDE and GitHub Basics.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lesson 1 - Introduction to Python/Optional Installing IDE and GitHub Basics.md b/Lesson 1 - Introduction to Python/Optional Installing IDE and GitHub Basics.md index f48589d..01bd012 100644 --- a/Lesson 1 - Introduction to Python/Optional Installing IDE and GitHub Basics.md +++ b/Lesson 1 - Introduction to Python/Optional Installing IDE and GitHub Basics.md @@ -1,6 +1,6 @@ The following is not necessary for the completion of this course, however could be benficial if you plan to continue working with python after completing this course. -## Downloading and Installing IDE (Optional) +## Downloading and Installing IDE 1. Installing PyCharm on Windows * Step 1: Download PyCharm From 6cf4669a0e332689f13976529e8bf680235c4d7f Mon Sep 17 00:00:00 2001 From: garrett-mcclay <127245999+garrett-mcclay@users.noreply.github.com> Date: Wed, 25 Sep 2024 14:22:50 -0400 Subject: [PATCH 14/14] Revert Introduction.md --- .../Introduction.md | 112 +----------------- 1 file changed, 4 insertions(+), 108 deletions(-) diff --git a/Lesson 1 - Introduction to Python/Introduction.md b/Lesson 1 - Introduction to Python/Introduction.md index 7ec9849..90b57b4 100644 --- a/Lesson 1 - Introduction to Python/Introduction.md +++ b/Lesson 1 - Introduction to Python/Introduction.md @@ -24,114 +24,10 @@ Before you head forward, it is important to note that there are two major Python ## Downloading and Installing Python: -1. Installing Python on Windows - - * Step 1: Download Python Installer - * Go to the official Python website: https://www.python.org/downloads/. - * The website will automatically detect your operating system and suggest the latest version of Python for Windows. - * Click Download Python 3.x.x (the latest version at the time). - - * Step 2: Run the Python Installer - * Once the installer has been downloaded, locate the .exe file in your Downloads folder and double-click it to launch the installer. - - * Step 3: Customize Installation Options - * Important: At the bottom of the installation window, check the box that says Add Python to PATH. This step ensures you can use Python from the command line or terminal. - * Click Customize installation to proceed to the next step. - - * Step 4: Select Optional Features - * In the Optional Features screen, you can leave the default selections (such as: - * Documentation: Provides access to Python documentation. - * pip: Python’s package manager (important for installing additional packages). - * tcl/tk and IDLE: Used for GUI applications and the IDLE development environment. - * Python test suite: This is optional for testing Python itself. - * Click Next. - - * Step 5: Advanced Options - * In the Advanced Options screen, you can leave most of the default options checked. You may want to check the following based on your preferences: - * Install for all users: Choose this if you want Python installed system-wide. - * Precompile standard library: This helps Python run faster. - * Choose an installation location if needed (or leave it as default) and click Install. - - * Step 6: Wait for the Installation to Complete - * The installer will begin copying files and setting up Python on your system. Once it’s done, you’ll see a success message. Click Close to exit the installer. - - * Step 7: Verify Python Installation - * Open the Command Prompt by pressing Win + R, typing cmd, and pressing Enter. - * In the Command Prompt, type: - * python --version - * This should display the installed Python version (e.g., Python 3.x.x). If it doesn't, check that Python was added to the PATH correctly. - - * Step 8: Verify pip Installation - * In the Command Prompt, type: - * pip --version - * You should see the version of pip that is installed with Python. - -2. Installing Python on macOS - * Step 1: Check Pre-installed Python Version (Optional) - * macOS comes with Python 2.x pre-installed. To check which version is installed, open Terminal (press Cmd + Space, type Terminal, and press Enter), and type: - * python --version - * This will likely show Python 2.x. - - * Step 2: Download Python Installer - * Go to the official Python website: https://www.python.org/downloads/. - * The website will detect your operating system and show the latest version for macOS. Click Download Python 3.x.x. - - * Step 3: Install Python - * Locate the .pkg file in your Downloads folder and double-click it to launch the installer. - * Follow the on-screen instructions: - * Click Continue when the installer window opens. - * Agree to the License Agreement. - * Select the disk where you want to install Python, and click Install. - - * Step 4: Complete Installation - * installer will copy files to your system. Once it's finished, click Close. - - * Step 5: Verify Python Installation - * Open Terminal and type: - * python3 --version - * You should see the installed version of Python 3. - - * Step 6: Verify pip Installation - * In the Terminal, type: - * pip3 --version - * If pip was installed correctly, it should display the version. - -3. Installing Python on Linux (Ubuntu/Debian-based) - * Most Linux distributions come with Python pre-installed, but it might be an older version (usually Python 2). Here’s how to install Python 3.x. - - * Step 1: Update the Package List - * Open a terminal (Ctrl + Alt + T on most Linux systems), and update your package manager: - * sudo apt update - - * Step 2: Install Python 3 - * Install Python 3 by running the following command: - * sudo apt install python3 - - * Step 3: Verify Python Installation - * Once the installation is complete, verify that Python is installed: - * python3 --version - * This should display the installed version of Python 3. - - * Step 4: Install pip - * To install pip (Python’s package manager), use the following command: - * sudo apt install python3-pip - - * Step 5: Verify pip Installation - * Check if pip is installed correctly: - * pip3 --version - -4. Installing Python on Other Linux Distros (Fedora, Arch, etc.) - * Here are commands for other popular Linux distros: - - * For Fedora: - * sudo dnf install python3 - - * For Arch Linux: - * sudo pacman -S python - - * Once installed, you can verify Python and pip installations with: - * python3 --version - * pip3 --version +You can download python from here: [https://www.python.org/downloads/](https://www.python.org/downloads/) + +For a detailed tutorial on installation refer to this or any other site on the Internet: [https://realpython.com/installing-python/](https://realpython.com/installing-python/) + ## Python Capabilities: