def print_ifs_info(router): if_names, if_speeds = router.get_ifs_info() ##Functions asked from Gigi for i, interface_name in enumerate(if_names): print interface_name, ",", if_speeds[i] return if_names, if_speeds
def print_ifs_info(router): """Given the object router in input, this function returns two lists: the interfaces names list and the speeds interfaces list""" if_names, if_speeds=router.get_ifs_info() for i, interface_name in enumerate(if_names): print interface_name, ',',if_speeds[i] return if_names, if_speeds