Python code in Blender

I keep seeing examples of Python “code” that can supposedly be used in Blender. But I’ve never seen how this code is actually incorporated into Blender. How is it used in Blender, or stated differently How does Blender access it? Just because you have a a code file doesnt mean it will automatically affect the Blender scene/objects/frames/etc. How is this performed???
[email protected]
Everybody wants to Rule the World