def ignore_command(command, ignore):
    """
    Checks command if it contains words from ignore list.
    command - string, command to check,
    ignore - list of words.
    Return True if command contains word from ignore list, False otherwise.
    """

    return any(word in command for word in ignore)