
"""simple docstring"""




def 							a__ (				lowerCAmelCase	:       str       ,    lowerCAmelCase	:       list[str]		):






     '''simple docstring'''
     UpperCAmelCase__							: Union[str, Any] 							=						""
     for word_or_phrase in separated:
          if not isinstance(lowerCAmelCase       ,    lowerCAmelCase		):
               raise Exception("join() accepts only strings to be joined"		)
          joined += word_or_phrase + separator
     return joined.strip(lowerCAmelCase		)


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

    testmod()





"""simple docstring"""




def 							a__ (				lowerCAmelCase	:       int		):






     '''simple docstring'''
     if a < 0:
          raise ValueError("Input value must be a positive integer"		)
     elif isinstance(lowerCAmelCase       ,    lowerCAmelCase		):
          raise TypeError("Input value must be a 'int' type"		)
     return bin(lowerCAmelCase		).count("1"		)


if __name__ == "__main__":
    import doctest

    doctest.testmod()



