diff --git a/responses/10_create-python-file.md b/responses/10_create-python-file.md index 9313a56..f6f97f4 100644 --- a/responses/10_create-python-file.md +++ b/responses/10_create-python-file.md @@ -56,10 +56,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)] - - random_fact = select_random_fact(fact_list) + random_fact = random.choice(fact_list) # Print the individual randomly returned cat-fact print(random_fact)