+ 2
Relevant post(s): https://www.sololearn.com/Discuss/1274479/?ref=app https://www.sololearn.com/discuss/1202365/?ref=app "... It is an interesting hack/utility in Python which lets a Python program run Python code within itself. The eval() method parses the expression passed to it and runs python expression(code) within the program. The syntax of eval is: eval(expression, globals=None, locals=None) expression: this string is parsed and evaluated as a Python expressionglobals (optional): a dictionary to specify the available global methods and variables.locals (optional): another dictionary to specify the available local methods and variables. ... " Source: https://www.google.co.in/amp/s/www.geeksforgeeks.org/eval-in-python/amp/
21st May 2018, 11:37 AM
Rahul George
Rahul George - avatar