def capitalize_string(input_string):
 if input_string:
  return (input_string[0].upper() + input_string[1:])
 else:
  return input_string

def capitalize_string ( input_string ) : if input_string : return ( input_string [ 0 ] . upper ( ) + input_string [ 1 : ] ) else : return input_string
converts the first character of a string to its uppercase equivalent .