Skip to content

Commit 09d8cc8

Browse files
authored
Added Python 3 info
1 parent b885831 commit 09d8cc8

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

responses/02-helloworld.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,17 @@ Now you're ready to start coding. Let's get familiar with the files in our repo:
44
- `get-quote.py`: the file where we'll write our Python code
55
- `quotes.txt`: a text file with a list of quotes
66

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+
```
811

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`
1018

1119
You should see our first quote, the one hard-coded into line 2, printed out in your terminal:
1220
`Keep it logically awesome.`

0 commit comments

Comments
 (0)