I\'m having trouble with a code that has a problem with the action I put within the loop. I\'m working on implementing a while loop with in a function simultaneously with a