import random

oks = [
    "A","B","C",
    "D","E","F",
    "G","H","I",
    "J","K","L",
    "M","N","O",
    "P","Q","R",
    "S","T","U",
    "V","W","X",
    "Y","Z","!",
]

kos = oks[:]         
random.shuffle(kos)  

def rt(lt):
    i = oks.index(lt)  
    j = kos[i]
    return j




def f(p):
    toh=[]
    toh.append(p)
    toh.append(f'→')
    F = rt(p)
    toh.append(F)
    for i in range(27):
        if F == p:
            break
        F=rt(F)
        toh.append(f'→')
        toh.append(F)
    return toh

for i in range(len(oks)):
    print(f(oks[i]))



    

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: