what's wrong with the program?
I wanted to make a program to shuffle a list of alphabets and store shuffled list in an another list such that no two lists are shuffled exactly the same. /////////////////////////////////////////////////////////////////////////////////////////// import random h = ['a','b','c','d','e','f'] store = [] NumOfLetters = len(h) for j in range(10): if (h not in store): print('not in') store.append(h) print(store) for i in range(NumOfLetters): l = random.randint(0,5) letter = h[i] h[i] = h[l] h[l] = letter print(store) //////////////////////////////////////////////////////////////////////////////////////////////////// everything works as intended when i run the loops separately, it's when I nest for loops where things go wrong. I'm still new, so any advise will be much appreciated.