How to Learn Python

I've taught several people the basics of coding throughout the years. If Python is the language you should learn first (rather than, say, JavaScript), do this:

Read Learn Python the Hard Way and go through at least the first ~half of the exercises in order to learn the basics of Python.

In general, the most important thing you can do when learning how to code is project-based learning. Come up with ideas for simple things to build, and build them! Or get project ideas from other people.