def pretty_name(name):
 if (not name):
  return ''
 return name.replace('_', ' ').capitalize()

def pretty_name ( name ) : if ( not name ) : return '' return name . replace ( '_' , ' ' ) . capitalize ( )
converts first_name to first name .