blob: ef9b17f3f398bcb6a74fc9c3ac8344f9d5544a9c (
plain)
1
2
3
4
5
6
7
8
|
def get_user_code(name):
return input(f'Enter code to be executed please, {name}: ')
username = "Ada"
allowed_globals = {'__builtins__' : None}
allowed_locals = {'print': print}
exec(get_user_code(username), allowed_globals, allowed_locals) # pylint: disable=exec-used
|