Wow. Your comment took me back in time. I remember doing the same thing, with a Commodore VIC20.
Mark-sense cards here, AND cassette tapes.
Yes, I spent who knows how many hours and days typing in programs for the Timex Sinclair, TRS-80 pocket computer, TI99-4a, VIC20, and the first MSX prototype computer the Spectravideo SV-320. These came from books and magazines. This actually was good in some ways as far as learning goes. This didn't really stop until I after I got a Commodore 64 with a disk drive. With the IBM XT clone I ended up typing in programs for the incredible “automated” macro language built into Lotus 123 which was not truly surpassed by MS Excel for years.
It was possible to create a program in the lotus macro language in a few minutes that would have taken hours to create in a home computer BASIC programming language.