def add_components(page, item_type, items, is_advanced_problem=False):
 for item in items:
  add_component(page, item_type, item, is_advanced_problem)

def add_components ( page , item_type , items , is_advanced_problem = False ) : for item in items : add_component ( page , item_type , item , is_advanced_problem )
adds multiple components of a specific type .