Lab 1: Introduction to Linux, Python Setup, and Your First Python Program

Objectives

Setup (To be done in class)

Before we begin with the lab assignment, make sure you have the following setups done with the help of your TAs:

Part 1: Basic Linux Terminal Commands

  1. Open the Terminal

  2. Basic Commands

  3. Exercise:

Part 2: Setting Up Python3

  1. Check if Python is Installed

    python3 --version

    If Python is installed, it will display the version number.

  2. Installing Python3

  3. Verify the Installation

    python3 --version

    You should see the version number of Python3.

Part 3: Writing and Running Your First Python Program

  1. Create a New Python File

  2. Write Your First Python Program

  3. Run Your Python Program

    python3 hello.py

    You should see the output:

    Hello, world!

Additional Resources