--Originally published at Programming Fundaments
To crate a module, you will need a code editor like, for example, Atom.
You just need to create a code or string on the code editor, then you should save the code with .py and then you have a module. Done, easy peasy.