St.input_python_code()!?

is there a way to take the code from the user and execute it

i think i have a solution

  • take text input from the user
  • save text into a python file
  • run the python file

Though you must understand the security implications beforehand, you can use the eval method to evaluate a string from the text input as Python code :wink:

Fanilo

2 Likes

Thank you so much