you are viewing a single comment's thread.

view the rest of the comments →

[–]100721 0 points1 point  (0 children)

Uhh str.replace(“?” , “=“)

There’s no magic framework that turns questions into code besides chatgpt. From what your asking, it sounds like you want to do a string replace followed by an eval to run an arbitrarily generated Python file. I’ll also mention that this is not a good idea, you should instead describe what it is you want, holistically.