This is the basic idea behind https://python.cards, the site I'm building to learn Python with spaced repetition.
The hard thing is building the deck. With pre-built decks I expect to greatly reduce the effort required while getting most of the benefits of spaced repetition learning.