1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
import replit
import random
from time import sleep
target = ''.join(list(map(chr,[104,101,108,108,111,32,119,111,114,108,100])))
chars = "abcdefghijklmnopqrstuvwxyz [email protected]#$%^&*()-=_+<>,./?\|`~"
char_end = len(chars) - 1
s = ""
i = 1
while s != target:
s = s + chars[random.randint(0, char_end)]
replit.clear()
print(s)
sleep(0.06)
if s[0:i] != target[0:i]:
s = s[0:len(s)-1]
else:
i+=1