From ba790c39e2655da242e4ffe93945758fa80276b0 Mon Sep 17 00:00:00 2001 From: "Jessica L. Hacker" Date: Wed, 18 Sep 2019 17:23:47 -0700 Subject: [PATCH] Remove default max_attempts value from get_random_quote --- templates/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/main.py b/templates/main.py index c54a34c..ee6a388 100644 --- a/templates/main.py +++ b/templates/main.py @@ -47,7 +47,7 @@ quotes: a list of comma separated values representing quotes max_attempts: the number of times a random quote should be selected if the previously selectd quote is formatted incorrectly return: the selected quote, or an empty list (if max_attempts was exceeded) """ -def get_random_quote (quotes, max_attempts = 5): +def get_random_quote (quotes, max_attempts): success = False attempts = 0 quote = []