Evaluate the expression 'print(55)':
x = 'print(55)'
eval(x)
The eval()
function evaluates the specified expression, if the expression is a legal Python statement, it will be executed.
eval(expression, globals, locals)
Parameter Values Parameter Description expression A String, that will be evaluated as Python code globals Optional. A dictionary containing global parameters locals Optional. A dictionary containing local parametersTrack your progress - it's free!
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4