def convert_case(s):
 return ''.join([a.title() for a in s.split('_') if a])

def convert_case ( s ) : return '' . join ( [ a . title ( ) for a in s . split ( '_' ) if a ] )
given a string in snake case .