to code code example
Example 1: how to code
learn how.
find a program.
mess around until you have a good idea,
and/or mess around to learn how that program works.
execute that idea.
Example 2: where to learn how to code
The Best sites are freecodecamp, khanacademy, and Codeacademy