Python for Javascript developers

These exersice files are to be used in conjuction with the course "Python for Javascript Developers" on LinkedIn Learning

Downloads

  • Visit python.org and download Python for your operating system.
  • Visit nodejs.org and download NodeJS for your operating system.

Setting up a vertual environment.

  1. Create a virtual environmet with the following command:
    python3 -m venv venv
  2. Activate the vertual environment:
    1. Linux and Mac
    source venv/bin/activate
    1. Windows
    venv\Scripts\activate

    ⚠️ If you encounter an error using Windows PowerShell, try opening another shell with the "Run as Administrator" option.

  3. Install the required packages
    pip install -r requirements.txt
    

Every time you start a terminal session

  1. Navigate to the course directory

  2. Activate the vertual environment:

    1. Linux and Mac
    source venv/bin/activate
    1. Windows
    venv\Scripts\activate

Running a single exercise file.

⚠️ Make sure that you have set up your environment according to the instructions above

  1. Javascript
    node CH_02_01.js
  2. Python
    python CH_02_01.py