Video Coming Soon...

Created by Zed A. Shaw Updated 2024-11-15 13:50:32
 

13: Parameters, Unpacking, Variables

We're now going to take a quick detour into the world of the Terminal (aka PowerShell) version of python. If you did the Getting Started completely you should have learned how to start your terminal. If not then simply find the program named PowerShell on Windows or Terminal on macOS. Later in this course you'll learn how to use the terminal more extensively, but in this exercise we'll just do a tiny test.

First, I want you to create a file named ex13.py using Jupyter's new Python file:

  1. On the left there's a list of the files in your directory.
  2. Above that list is a blue [+] button.
  3. Click that button, and scroll to the very bottom should be a button for Python File with the Python "blue and yellow snakes" logo.
  4. Click that button and this should open a new panel you can type code into.
  5. Right away, use your mouse to select File > Save Python File or hold CTRL and hit s (normally shown as Ctrl-S but you don't use shift to get that S).
  6. This will open a modal prompt that says "Rename File". Type "ex13" and it should keep the .py, but be sure that this input says ex13.py.
  7. Hit the blue [Rename] button and that will save the file in that directory.

Once that file is saved, you can then type this code into the file:

Previous Lesson Back to Module

Register for Free Support Course

Register to gain access to additional videos which demonstrate each exercise. Videos are priced to cover the cost of hosting.

ect>

Sample Video Frame

Created by Zed A. Shaw Updated 2024-11-15 13:50:32
 

13: Parameters, Unpacking, Variables

We're now going to take a quick detour into the world of the Terminal (aka PowerShell) version of python. If you did the Getting Started completely you should have learned how to start your terminal. If not then simply find the program named PowerShell on Windows or Terminal on macOS. Later in this course you'll learn how to use the terminal more extensively, but in this exercise we'll just do a tiny test.

First, I want you to create a file named ex13.py using Jupyter's new Python file:

  1. On the left there's a list of the files in your directory.
  2. Above that list is a blue [+] button.
  3. Click that button, and scroll to the very bottom should be a button for Python File with the Python "blue and yellow snakes" logo.
  4. Click that button and this should open a new panel you can type code into.
  5. Right away, use your mouse to select File > Save Python File or hold CTRL and hit s (normally shown as Ctrl-S but you don't use shift to get that S).
  6. This will open a modal prompt that says "Rename File". Type "ex13" and it should keep the .py, but be sure that this input says ex13.py.
  7. Hit the blue [Rename] button and that will save the file in that directory.

Once that file is saved, you can then type this code into the file:

View Source file ex13.py Only

Previous Lesson Next Lesson

Register for Free Support Course

Register to gain access to additional videos which demonstrate each exercise. Videos are priced to cover the cost of hosting.