Python eval function is a built-in function that is used to evaluate the the expression, if the expression is a legal statement.