Skip to content

Instantly share code, notes, and snippets.

@pamelafox
Created August 30, 2021 05:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pamelafox/bd3ca97c7ef764279537ad2f15965d90 to your computer and use it in GitHub Desktop.
Save pamelafox/bd3ca97c7ef764279537ad2f15965d90 to your computer and use it in GitHub Desktop.
Safe To Eat
"""This function should return true if the seafood type is "mollusk" OR
it's been frozen for at least 7 days.
"""
def is_safe_to_eat(seafood_type, days_frozen):
"""
>>> is_safe_to_eat("tuna", 3)
False
>>> is_safe_to_eat("salmon", 6)
False
>>> is_safe_to_eat("salmon", 7)
True
>>> is_safe_to_eat("mollusk", 1)
True
>>> is_safe_to_eat("mollusk", 9)
True
"""
return 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment