Using information from a while loop to print a dictionary

Thanks Rob, I’ll try that