From 92687dd5c4bcc2e03c8a9cb729dcd7abfe3a3888 Mon Sep 17 00:00:00 2001 From: AlintaLu Date: Tue, 5 Jan 2021 15:25:58 -0500 Subject: [PATCH] Fix index error in 10_create-python-file.md --- responses/10_create-python-file.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/responses/10_create-python-file.md b/responses/10_create-python-file.md index 9313a56..8a057a4 100644 --- a/responses/10_create-python-file.md +++ b/responses/10_create-python-file.md @@ -57,7 +57,7 @@ If Python is a new programming language to you, like always don't worry. You are # Select a random fact from the fact_list and return it # into a variable named random_fact so we can use it def select_random_fact(fact_arr): - return fact_arr[random.randint(0, len(fact_list)+1)] + return fact_arr[random.randint(0, len(fact_list)-1)] random_fact = select_random_fact(fact_list)