33. Python: eval(),exec(),repr() function

2 days ago
60

* The eval() function evaluates the specified expression, if the expression is a legal Python statement, it will be executed.
* The exec() function executes the specified Python code. The exec() function accepts large blocks of code, unlike the eval() function which only accepts a single expression.
* The repr() function returns a string containing a printable representation of an object.

Loading 1 comment...