<s> from collections import namedtuple <EOL> Order = namedtuple ( '<STR_LIT>' , [ '<STR_LIT>' , '<STR_LIT>' ] ) <EOL> class Orders ( list ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , * args ) : <EOL> super ( Orders , self ) . __init__ ( ) <EOL> self . extend ( args ) <EOL> def add_order ( self , symbol , shares ) : <EOL> """<STR_LIT>""" <EOL> self . append ( Order ( symbol , shares ) ) <EOL> def __repr__ ( self ) : <EOL> return "<STR_LIT>" % super ( Orders , self ) . __repr__ ( ) </s>
