Skip to content

Commit 40adb9b

Browse files
authored
Update 03-secondquote.md
1 parent f6a2edb commit 40adb9b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

responses/03-secondquote.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ The `last` variable holds the highest index for the array. Then our random numbe
2020
> **Note** If you want to add or remove quotes from your text file, you could change the last variable to update automatically:
2121
> ` last = len(quotes) - 1`
2222
23+
Finally, update the line where we print a single quote. Instead of including a number between the brackets, we'll put our random number variable:
24+
` print quotes[rnd]`
25+
2326
Try running your code a few times with `python get-quote.py` and your quotes should now be chosen at random.
2427

2528
## Push your changes

0 commit comments

Comments
 (0)