




'''simple docstring'''







def 						snake_case_							(_a	:							str    ,   _a	:							bool = False     ):

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

    UpperCAmelCase			       =		input_str.split('''_'''     )

    UpperCAmelCase			       =		0 if use_pascal else 1

    UpperCAmelCase			       =		words[start_index:]

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

    UpperCAmelCase			       =		'''''' if use_pascal else words[0]

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


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

   testmod()










'''simple docstring'''







import os





def 						snake_case_							():
    UpperCAmelCase			       =		os.path.join(os.path.dirname(_a     )    ,   '''num.txt'''     )
    with open(_a     ) as file_hand:
        return str(sum(int(_a     ) for line in file_hand     )     )[:1_0]


if __name__ == "__main__":
   print(solution())




