Explain to the beginner Python exec()?

In particular, the documentation says Python is executing the code.
Tried to do the following:
MY_FUNCTION='function_name' #the name of the function
MY_DIRECTORY_FUNCTION='directory_name' #the name of the directory with the function
April 7th 20 at 10:47
1 answer
April 7th 20 at 10:49
exec() always returns None and no parameters globals and locals working in the same scope where it was called.

Mixed global and globals, and since no experience got into the wilds of the keys, examples are not always working, and very confused.
I imported a pack of the same files but in different directories, on the condition NATHANIELDIEGOT. - frederick_Hay commented on April 7th 20 at 10:52

Find more questions by tags Python