iPad is definitely a bad choice here (unless external keyboard is hooked up), but you can teach basics even on paper just fine. Yes, probably you are not going to teach them enough to make a living, but the key of inmate courses is mostly to give them hope and show the other way of life, so when they are released from prison, they would want to seek a proper education themselves.