import random
def replace_ascii_symbols(string):
replacements = {
'A': ['@', '4'],
'B': ['8'],
'C': ['('],
'D': ['|)'],
'E': ['3'],
'H': ['#'],
'I': ['1', '!'],
'J': ['|'],
'K': ['|<'],
'L': ['1', '|'],
'N': ['|\\|'],
'O': ['0', '()'],
'R': ['|2'],
'S': ['5', '$'],
'T': ['7'],
'U': ['|_|'],
'V': ['\\/'],
'W': ['\\/\\/'],
'X': ['><'],
'Y': ['\'/'],
'Z': ['2', '7'],
'a': ['@', '4'],
'b': ['6'],
'c': ['('],
'g': ['9'],
'h': ['#'],
'i': ['1', '!'],
'j': ['|'],
'k': ['|<'],
'l': ['1', '|'],
'o': ['0', '()'],
's': ['5', '$'],
't': ['7'],
'u': ['|_|'],
'x': ['><', '%'],
'z': ['2', '7'],
}
result = ''
replace_flag = random.choice([True, False])
for char in string:
if char.upper() in replacements:
replace_options = replacements[char.upper()]
replace_char = random.choice(replace_options)
if replace_flag:
result += replace_char
else:
result += char
replace_flag = not replace_flag
else:
result += char
return result
print(replace_ascii_symbols("Creative Priority"))
To embed this program on your website, copy the following code and paste it into your website's HTML: