I am trying to create and display pictures in a for loop but only picture for the last loop is displayed.
lst=[2, 4, 6, 8, 16]. In each iteration, j picks a number from l