Agree, testnet is a good choice in your situation. Or even regtests (see test/functional folder in bitcoin sources with python tests in it). This variant allows you to start many nodes on one PC and to model different complex situations, write and test your code from very beginning and don't require free space at all, I recommend to use regtests to learn bitcoin programming.