Summary of "Lab 1 intro to python"

Lab 1: Intro to Python (Deep Learning Applications)

Overview

This lab introduces students to Python and the development environment setup used in the Deep Learning Applications course. Topics covered include:

Note: Python will be used for the deep-learning labs. Jupyter Notebook is recommended for interactive work.


Installation & Environment Setup

Install Python (Windows)

  1. Go to the official website: python.org → Downloads → Windows.
  2. Download the appropriate Windows installer (for most systems, the latest stable x86-64 executable installer).
  3. During installation, check the box:

    Add Python to PATH

  4. Proceed with the installation.

Install an editor / IDE

Install Jupyter Notebook (recommended)

Open Windows PowerShell (Run as administrator if necessary) and run the following commands:

python -m pip install --upgrade pip
python -m pip install jupyter

Launch Jupyter Notebook:

jupyter notebook
# or
python -m notebook

Keep the PowerShell/terminal session open (you can minimize it) while the notebook server runs.


Running a .py file in VS Code

  1. Create a folder (e.g., PythonProject) and a file (e.g., hello.py).
  2. Save the file (Ctrl+S).
  3. In VS Code: Terminal → New Terminal.
  4. Ensure the terminal path is the folder containing your file.
  5. Run:
python hello.py

How to Use Jupyter Notebook (basic workflow)


Core Python Language Points and Examples

print

print("hello")

Strings and quoting

Variables

text = "hello"
print(text)

Printing variables mixed with text

Basic numeric example

c = 5
print(f"C = {c}")  # outputs: C = 5

Common String Methods


Variable Naming Rules


Practical Tips from the Lecture


Corrections & Clarifications


Speakers / Sources Mentioned

Category ?

Educational


Share this summary


Is the summary off?

If you think the summary is inaccurate, you can reprocess it with the latest model.

Video