[Tutor] RE: I don't understand why it doesn't work :(

Alan Gauld alan.gauld@blueyonder.co.uk
Wed Jun 4 05:04:38 2003


> When I type
> result = eval("3*4") +  5
> A little ^ points out an invalid syntax under the
> "l" of evual :(

Well if you typed 'evual' you will get an error but 
assuming you did type 'eval' I don't know what's wrong. 
It works for me:

>>> res = eval("3*4") + 5
>>> res
17
>>>

Alan G