model-view-controller pattern time_of_day=self time_model get_time_of_day()known=false view py class greetingview(object)def __init__(self)pass def generate_greeting(selfnametime_of_dayknown)if name ="lion"print("rrrrrrrroar!"return if knownprint("good {welcome back {}!format(time_of_dayname)elseprint("good {{}it is good to meet youformat(time_of_dayname)models py class namemodel(object)def __init__(self)self filename 'names datdef _get_append_write(self)if os path exists(self filename)return 'areturn 'wdef get_name_list(self)if not os path exists(self filename)return false with open(self filename' 'as data_filenames data_file read(split('\ 'return names