Changes

Jump to: navigation, search

OPS445 Online Lab1

1,625 bytes added, 17:34, 2 May 2023
Investigation 1 - Set Up A Development Environment
:* Enter your name, and a password. Don't forget this password, as you will need it to become root.
== Task 2: = Verify Python ===
Fedora should have the required software (with the exception of VS Code) already installed. We will verify this before moving on.
:* Run '''sudo dnf update''' to update the system software.
== Task 3: = Install Visual Studio Code and Extensions ===
Visual Studio Code has an excellent Debugger for Python, and so it is the recommended editor for this course. However, you may use a different editor at your discretion. Pycharm Community also has a very good debugger, works on Fedora, and is free for students.
:* Type 'Python' into the search bar, and click 'Install' when you find the extension created by Microsoft. You may wish to explore other extensions to customize your workspace.
== Option 2: Use WSL == If your computer has less than 16 GB of RAM and has problems running a full virtual machine, you may choose to use Windows Subsystem for Linux (WSL) instead. This will provide a minimal Linux environment.:* Open "Windows Store".:* Search for "Ubuntu" and install the app that is published by Canonical.:* Launch Ubuntu from the Start Menu. You will have a terminal-based Linux interface only. To access your Windows files, type <code>cd /mnt/c</code>. This will get you to the top of your Windows C drive. === Verify Python on Ubuntu === Ubuntu should have the required software (with the exception of VS Code) already installed. We will verify this before moving on.:* Enter the command '''python3 --version''' and verify that the installed version is at least '''python 3.4'''. If no version of Python is installed, run '''sudo apt install python3'''.:* Enter the command '''git --version''' and verify that the installed version is at least '''git 1.2'''. If no version of Python is installed, run '''sudo apt install git'''.:* Run '''sudo apt update && sudo apt upgrade''' to update the system software.  === Verify Python on Windows ===:* Open your Windows command prompt and type '''python --version'''. If no version of Python is installed, it should give you instructions in how to install it, or go to [https://www.python.org/downloads/ the Python Homepage]. === Install VS Code ===:* Follow the instructions to [https://code.visualstudio.com/download install VS Code on Windows]. Now you will be able to complete most tasks on Windows, and switch to a minimal Linux environment when needed.  == Task 4: Verify The Python Interpreter ==
'''A few background information about the Python programming language
* The Python Interpreter understanding the Python language and this is why we are going to learn this programming language in this course.
* To exit from the interactive Python shell, press Ctrl+d.
== Task 5 - : Create directory structure for Labs and Assignments ==
=== Create directory structure using BASH commands===
:* Lets setup and reserve the following directories for storing and organizing files for labs and assignments. Execute the following commands at the command prompt:

Navigation menu