parameters: (self, value: int)
return_statement: return ",".join(reversed(parts))
docstring: Returns a comma-separated number for the given integer.
docstring_summary: Returns a comma-separated number for the given integer.
docstring_tokens: Returns a comma - separated number for the given integer .
function: def friendly_number(self, value: int) -> str:
          """Returns a comma-separated number for the given integer."""
          if self.code not in ("en", "en_US"):
              return str(value)
          s = str(value)
          parts = []
          while s:
              parts.append(s[-3:])
              s = s[:-3]
          return ",".join(reversed(parts))
function_tokens: def friendly_number ( self , value : int ) -> str : if self . code not in ( "en" , "en_US" ) : return str ( value ) s = str ( value ) parts = [ ] while s : parts . append ( s [ - 3 : ] ) s = s [ : - 3 ] return "," . join ( reversed ( parts ) )