phrase = input("Choose your phrase:")
def translate(phrase):
for letter in phrase:
if letter in "C":
letter = phrase.replace("C","b")
if letter in "c":
letter = phrase.replace("c","b")
else:
letter = phrase
return letter
print(translate(phrase))
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter