I am trying to get the following output until a certain condition is met.
test_1.jpg test_2.jpg .. test_50.jpg
The solution (if you could remotely call
Print out the value of parts[0] each time you go round the loop ... I think you may be surprised,