<filename>Task-Week-2/Task-2/Lists.py<gh_stars>0
#Lists

if __name__ == '__main__':
    l=[]
    N = int(raw_input())
    for _ in range(N):
        s=raw_input().split()
        cmd=s[0]
        args=s[1:]
        if(cmd !="print"):
            cmd+="("+",".join(args)+")"
            eval("l."+cmd)
        else:
            print(l)
        
<filename>Task-Week-2/Task-2/Lists.py<gh_stars>0
#Lists

if __name__ == '__main__':
    l=[]
    N = int(raw_input())
    for _ in range(N):
        s=raw_input().split()
        cmd=s[0]
        args=s[1:]
        if(cmd !="print"):
            cmd+="("+",".join(args)+")"
            eval("l."+cmd)
        else:
            print(l)
        