def valid1(s, c, low, high):
    """
    Returns True or False depending on whether the number of occurences of the character `c` 
    in the string `s` is between the integers `low` and `high` inclusive
    """
    return low <= s.count(c) <= high