Let's start here
Let's start with the concept of algorithms, shall we? Those are pretty universally applicable for problem-solving in any field.
Once we've got past that, THEN we might start looking at coding.
Remember the old adage: Months of coding can save days of planning.