It depends on the program.
If its main purpose was to teach you to code (I mean, teach you a technology skill that isn't related to the organization itself), then it looks like an educational program and should be in education, specifically in complimentary education, if you have such section in your resume.
But if you already have the coding skills and what you've done was work in organization's real world issues, to learn how to work there and/or have experience in the area, looks like it's more like an internship.
There's a third option. You said you were "lucky enough" for that. If lucky was used as an expression, but really meaning you were selected for that, among many people, for any technical reason, you could have an achievement section in your resume telling that.