I’ve been looking at dynamic evaluation of Python code, and come across the eval()
and compile()
functions, and the exec
statement.
Can someone please explain the difference between eval
and exec
, and how the different modes of compile()
fit in?