2008/07/08

Exec and eval in python

Example:
exec('a=1+3')
or
a=eval('1+3')
then a=4

No comments: