This is my first post in the python thread and I am very new to the language. A while ago, i wrote a program that find the least common denominator for an array of numbers in Java. I recently started to look at the python language and I have attempted to write the same program in python. I wrote it and it works up to just one part. I have a 'while' loop with an inner 'for' loop. inside the for loop it has an 'if' statement that has a result of a 'break'. From what I have read in the Python Pocket Reference by O'Reilly, and from what I know about Java, the break statement should just break out of the 'for' loop and not the outer 'while' loop, but it seems like it is breaking out of both of them... How can I get it to just get out of the 'for' loop without getting out of the outer 'while' loop? Thanks for any help in advance.
Oh, by the way... Sorry for not showing any code examples of my problem, but I have it saved on a usb flash card and I seem to have misplaced it at the moment.