I'd pull these into separate variables `major_version` and `minor_version`. Makes it a bit more obvious as to what's going on.