someList = { 1000: ("1","2","3","","5","","7","8","9"), 1001: ("1","2","3","4","5","6","","8","9"), } for key, value in someList.items(): for item in value: print('%d:\tFULL BLOCK\t[%s]' % (key, item)) if item != '' else print('%d:\tEMPTY BLOCK\t[ ]' % key)