In your code, you are using the function eval(), which allows the user to execute any python code inputted, like __import__('os').system('whoami') .
__import__('os').system('whoami')
In your code, you are using the function eval(), which allows the user to execute any python code inputted, like
__import__('os').system('whoami').