Originally posted by fred rosenberger:
well, part of your problem is
the semicolon defines the end of your while loop. This code as written would go into an infinite loop if sentences is less than number. if it's not, you'll blow through this loop, and go straight to your print statements, and then end.
you need to take out the semicolon, and probably put in braces around what SHOULD be in the body of your loop.