def party_planner(cookies, people):
    """This function will calculate how many cookies each person will get in the party
    and also gives out leftovers
    ARGS:
    cookies: int, no of cookies is going to be baked
    people: int, no of people are attending this party_planner
    Returns:
    tuple of cookies per person and leftovers"""
    leftovers = None
    num_each = None
    try:
        num_each = cookies // people
        leftovers = cookies % people
    except ZeroDivisionError as e:
        print('People cannot be zero. {}'.format(e))

    return(num_each, leftovers)