Source code for buyrandom3.core

"""Core functionalities."""

[docs] MIN_LENGTH = 9
[docs] def buy(random_string): """Decide whether to buy or not. Args: random_string (str): a random~ish product name. Returns: boolean: Should you buy or stay. """ ret = False if len(random_string) <= MIN_LENGTH: ret = True return ret