






def       __lowerCAmelCase      (						__snake_case					, __snake_case = False       ):

     if not isinstance(__snake_case					, __snake_case       ):
          __lowerCAmelCase								=					F"""Expected string as input, found {type(__snake_case       )}"""
          raise ValueError(__snake_case       )
     if not isinstance(__snake_case					, __snake_case       ):
          __lowerCAmelCase								=					F"""Expected boolean as use_pascal parameter, found {type(__snake_case       )}"""
          raise ValueError(__snake_case       )

     __lowerCAmelCase								=					input_str.split("_"       )

     __lowerCAmelCase								=					0 if use_pascal else 1

     __lowerCAmelCase								=					words[start_index:]

     __lowerCAmelCase								=					[word[0].upper() + word[1:] for word in words_to_capitalize]

     __lowerCAmelCase								=					"" if use_pascal else words[0]

     return "".join([initial_word, *capitalized_words]       )


if __name__ == "__main__":
 from doctest import testmod

 testmod()














from __future__ import annotations





def       __lowerCAmelCase      (						__snake_case					, __snake_case					, __snake_case       ):
     __lowerCAmelCase								=					list(range(len(__snake_case       )       )       )
     __lowerCAmelCase								=					[v / w for v, w in zip(__snake_case					, __snake_case       )]
     index.sort(key=lambda __snake_case       : ratio[i]					, reverse=__snake_case       )

     __lowerCAmelCase								=					0
     __lowerCAmelCase								=					[0] * len(__snake_case       )
     for i in index:
          if weight[i] <= capacity:
               __lowerCAmelCase								=					1
               max_value += value[i]
               capacity -= weight[i]
          else:
               __lowerCAmelCase								=					capacity / weight[i]
               max_value += value[i] * capacity / weight[i]
               break

     return max_value, fractions


if __name__ == "__main__":
 import doctest

 doctest.testmod()






