mercredi 10 mars 2021

How to shuffle all the characters in a .txt file?

How to shuffle all the characters that are in a .txt file?

wordlist.txt

with open('wordlist.txt', encoding='utf-8') as f:
    lines = f.readlines()

expected output

lrwod
ksy
nomo
nsu
htare



Aucun commentaire:

Enregistrer un commentaire