def ConvertToString(value):
 if (type(value) in (int, long)):
  return str(value)
 elif (type(value) == float):
  return repr(value)
 else:
  return value

def ConvertToString ( value ) : if ( type ( value ) in ( int , long ) ) : return str ( value ) elif ( type ( value ) == float ) : return repr ( value ) else : return value
converts value .