def add(table, record): """ Add new record to table Args: table (list): table to add new record to record (list): new record Returns: list: Table with a new record """ # your code return common.add(table, record)
def add(table, record): """ Add new record to table Args: table (list): table to add new record to record (list): new record Returns: list: Table with a new record """ # your code record[0], record[1], record[2] = int(record[0]), int(record[1]), int( record[2]) table = common.add(table, record) return table
def new_record(inputs, filename): new_table_value = [] new_table_value = common.add(get_data(), make_record(get_data(), inputs)) data_manager.write_table_to_file(filename, new_table_value)
def add(table, record): table = common.add(table,record) return table
def add(file, common_options): get_table_from(file) record = terminal_view.get_inputs([opt for opt in common_options], "Please provide following data: ") save(file, common.add(get_table_from(file), record))