@@ -115,7 +115,7 @@ Downloading files from GitLab (the site hosting this document) is a little trick
Alright, we've downloaded our first Python file! *Or have we?*
### Task 1.3: Open a "terminal emulator" aka a Terminal.
### Task 1.3: Open a terminal emulator aka a Terminal.
**Windows**:
...
...
@@ -137,7 +137,7 @@ We're going to talk more about terminals later - don't worry too much about the
### Task 1.4: Copy the pathname of your `lab-p1` folder.
1. Open your `cs220` folder in either File Explorer or Finder.
2. Copy the pathname of `lab-p1` using either these [Windows directions](https://www.pcworld.com/article/468873/windows-tips-copy-a-file-path-show-or-hide-extensions.html) or [Mac directions](http://osxdaily.com/2015/11/05/copy-file-path-name-text-mac-os-x-finder/).
2. Copy the pathname of `lab-p1` using either these [Windows directions](https://www.pcworld.com/article/468873/windows-tips-copy-a-file-path-show-or-hide-extensions.html) or [Mac directions](https://osxdaily.com/2015/11/05/copy-file-path-name-text-mac-os-x-finder/).
3. Paste the pathname of `lab-p1` in your notes somewhere.
### Task 1.5: Navigate to the `lab-p1` directory.
...
...
@@ -169,7 +169,7 @@ Just type `cat hello.py` in your terminal and press Enter. As one might guess, `
Wooooooooah! That's a lot of stuff. Wait a minute... we've been bamboozled! This is an HTML file! **Delete this impostor `hello.py` using your file explorer!**
So, this is the incorrect way of downloading files from GitLab, when you encounter any error while running your program which lists "\<!DOCTYPE html\>", then you followed these wrong steps to download the program file.
So, this is the incorrect way of downloading files from GitLab, when you encounter any error while running your program which lists `\<!DOCTYPE html\>`, then you followed these wrong steps to download the program file.
### Task 1.7: Correctly Download a Python file
...
...
@@ -299,7 +299,7 @@ OR
cd .\lab-p1\
```
The above options are identical. ".\\" for Windows and "./" for Mac mean "relative to the current directory". The "\\" or "/"*after*`lab-p1` indicates that `lab-p1` is a directory.
The above options are identical. `.\\` for Windows and `./` for Mac mean **relative to the current directory**. The `\\` or `/`*after*`lab-p1` indicates that `lab-p1` is a directory.
As an additional exercise, consider the following...
...
...
@@ -398,7 +398,7 @@ Type the following and press Enter (Reminder: most of the MAC users will have to
python double.py
```
The program will say `please enter a number:`. This is known as a "prompt" (a fancy way to say a program is asking you a question).
The program will say `please enter a number:`. This is known as a **prompt** (a fancy way to say a program is asking you a question).
Type `5` and press Enter. Make sure that the program tells you the answer is `10.0`.
...
...
@@ -426,4 +426,4 @@ When you see the word `Traceback`, **it means the program crashed**. The `doubl
Congrats on finishing your first CS220 lab! You do not need to submit anything for the labs. The labs are designed to prepare you for the project and help you engage in the lab sessions run by TAs and peer mentors. Your TA will come around to check that you finished and enter your lab attendance points on Canvas.
It is recommended that you try to finish P1 right away during lab hours, so you can fix any installation issues with the help of your TA and peer mentor. Good luck with [P1](https://git.doit.wisc.edu/cdis/cs/courses/cs220/cs220-f22-projects/-/tree/main/p1)!
It is recommended that you try to finish P1 right away during lab hours, so you can fix any installation issues with the help of your TA and peer mentor. Good luck with [P1](https://git.doit.wisc.edu/cdis/cs/courses/cs220/cs220-s23-projects/-/tree/main/p1)!