You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: responses/02-helloworld.md
+10-2Lines changed: 10 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,9 +4,17 @@ Now you're ready to start coding. Let's get familiar with the files in our repo:
4
4
-`get-quote.py`: the file where we'll write our Python code
5
5
-`quotes.txt`: a text file with a list of quotes
6
6
7
-
Open up `get-quote.py` and comment out line 2 by removing the `#` from the beginning of the line.
7
+
Open up `get-quote.py` and comment out line 2 by removing the `#` from the beginning of the line. It will look like this:
8
+
```
9
+
print("Keep it logically awesome.")
10
+
```
8
11
9
-
Now let's try running that Python script. From the command line, type: `python get-quote.py`
12
+
The two spaces (or one tab) in front of the line is important. Python uses whitespace to organize code. This print line is part of the `main()` function. But more on that in the next step. First, let's try running that Python script.
13
+
14
+
Use the Python 3 command to run the script. From the command line, type one of the following:
15
+
16
+
-`python get-quote.py`
17
+
-`python3 get-quote.py`
10
18
11
19
You should see our first quote, the one hard-coded into line 2, printed out in your terminal:
0 commit comments