Is there any way I can evaluate an expression like this?
size = 5
str = "a" * size
The str variable holds aaaaa. Is there any API that could give me the value str holds?
I saw the PyAnyExpressionEvaluator class. Tried using the evaluate method. But that doesn't seem to return the result I'm expecting.
Could this be done before runtime?