loops - basic while loop and a list iteration