10) Bellow we define the functions 'apply(h,x_table)' and 'build_data(x,y)'. Explain what these functions do. (3 marks)
Posted: Fri Jul 08, 2022 6:37 am
10) Bellow we define the functions 'apply(h,x_table)' and 'build_data(x,y)'. Explain what these functions do. (3 marks) [ ] # Do not edit or delete this code def apply(h, x_table): y_table = [] for x in x_table : y_table += [ h( x ) ] #end_for return (y_table) #end_def def build_data( h, x_table ) : return [x_table apply( h, x_table ) ] #end_def 3