Created
October 4, 2024 09:42
-
-
Save reddgr/355252507defd7cca0cbf986a4c94608 to your computer and use it in GitHub Desktop.
Increasingly zalgoed Zalgo text
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
import os | |
import platform | |
from random import choice | |
def zalgo(text, Z): | |
marks = list(map(chr, range(768, 879))) | |
words = text.split() | |
result = ' '.join( | |
''.join( | |
c + ''.join(choice(marks) for _ in range((i // 2 + 1) * Z)) if c.isalnum() else c | |
for c in word | |
) | |
for i, word in enumerate(words) | |
) | |
print(f'{result}\n') | |
return | |
clear_command = 'cls' if platform.system() == 'Windows' else 'clear' | |
clear = lambda: os.system(clear_command) | |
for Z in range(0,50,1): | |
clear() | |
zalgo('INVOKE CHAOS', Z) | |
time.sleep(0.1) | |
time.sleep(1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment