News for hackers. Stuff that matters.
Re:How To Write A Calculator in 70 Python Lines by adr_ on Saturday February 23, 2013 @08:05PM (#5272221)

  try:print(lambda x:eval(x)if all(i in'0123456789.*/+-'for i in x)else'syntax error')(raw_input())
  except:print'error'

There are no comments on this comment yet.