You need to run calculator.py – it will import adder.py – but adder.py can be run independently too. See my post regarding the use of if __name__ == "main":
The code above is stored in pastebin. Click the links; then download the code from the separate pastebin pages.
Huge, huge, huge “definitive” list of learning resources for programming. It gets updated in real time and uses the Github API too. It is massive.
This was linked from a comment on the /r/freecodecamp subreddit. I came across the Reddit post when I was doing a bit of research on Node.js + FreeCodeCamp.
Aaah, I’m stuck on question 2 of Code Wars’ Python test! While researching the answer to this question involving __init__ I came across the blog of Jeff Knupp – he seems to write in depth with good analogies and code examples etc; also, an e-book by him is avaiable.
I’ve ended up going full circle; all the way back to Chapter 9 on Classes in the official Python documentation/tutorial. I think that is where I need to go next in my Python journey! [I also installed an Android app that is just basically the Python 3.5 docs – Little Drops]