import random


def create_food(snake_body, box):
    """Simple function to find coordinates of food which is inside box and not on snake_body body"""
    food = None
    while food is None:
        food = [random.randint(box[0][0]+1, box[1][0]-1), 
        random.randint(box[0][1]+1, box[1][1]-1)]
        if food in snake_body:
            food = None
    return food