<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def smartAppend(table,name,value):
 """ helper function for apppending in a dictionary """
 
    if name not in list(table.keys()):
        table[name] = []
    table[name].append(value)