>I need to learn how to code
Building your own working script out of thin air is a highly rewarding event I won't ever forget.
py4e.com is the best free resource I was able to find. Start at the beginning and spend a few days to a week on each chapter and in 3 months you'll be able to write working code from your mind. From there you just have to figure out what you want to build.