Jan_K wrote: > Solution for the 1st exercise in chapter 8: You mean chapter 7. > (I'm skipping the 2nd exercise - just a bunch of busywork) > > > ----------------------------------------------------------------------- > input = [] > > while input.last != '' > input.push gets.chomp > end > > puts input.sort > ----------------------------------------------------------------------- > Very nice! For exercise 2, writing a program that does something useful is good practice, and a sort algorithm's simple and therefore a good candidate if you can get into it. Or you could just write a game (Blackjack's simple) after you finish chapter 8. Cheers, Dave