Remove default max_attempts value from get_random_quote

This commit is contained in:
Jessica L. Hacker 2019-09-18 17:23:47 -07:00
parent 02bbcefe7c
commit ba790c39e2

View file

@ -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 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) 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 success = False
attempts = 0 attempts = 0
quote = [] quote = []