def convert_method_list_to_integer(methods):
 method_map = construct_method_map_from_config()
 method_ints = []
 for method in methods:
  for (k, v) in method_map.items():
   if (v == method):
    method_ints.append(k)
 return sum(method_ints)

def convert_method_list_to_integer ( methods ) : method_map = construct_method_map_from_config ( ) method_ints = [ ] for method in methods : for ( k , v ) in method_map . items ( ) : if ( v == method ) : method_ints . append ( k ) return sum ( method_ints )
convert the method type(s) to an integer .