[Tutor] combine string and integer

Israel Evans israel@lith.com
Wed, 22 May 2002 14:15:37 -0700


Israel--->
Oh yeah... I like that better...




Sean 'Shaleh' Perry [shalehperry@attbi.com]
if value < 0:
  char = '-'
else:
  char = ''

return "%d%s" % (abs(value), char)