Eval Function what is eval function

Dear TA ,
what is eval function? can you help with this

The eval() function evaluates the specified expression, if the expression is a legal Python statement, it will be executed.

a function which evaluates a string as though it were an expression in the language, and returns a result.

Syntax
eval(expression, globals, locals)
IMG_20221216_153738

1 Like