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)