+ 1
Eval
What does eval func actually do?
3 ответов
+ 7
It takes a string and "runs" it as if it were a line of code/expression.
+ 3
I never heard about this func, one more thing i learn here, thanks ☺☺☺
+ 2
The purpose of the eval() function is to allow Python to run Python code within itself.
Keep in mind, eval() is to be used with much caution as it can easily introduce many vulnerabilities.