Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os
- from sys import argv
- from random import choice
- from time import sleep
- filename = argv[1]
- text = open(filename).read()
- alphabet = list("1234567890qwertyuiopasdfghjklzxcvbnm")
- newtext = [choice(alphabet) if c in alphabet else c for c in text]
- os.system("clear")
- while "".join(newtext) != text:
- for i in range(len(newtext)):
- while newtext[i] != text[i]:
- newtext[i] = choice(alphabet)
- sleep(0.0001)
- os.system("echo -n \"\\033[H\"")
- print("".join(newtext), end="")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement