0 points

Translator (WIP)


dashboard

Fri Oct 02 2020 22:41:59 GMT+0000 (UTC)

Posted by @fsalih #python

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))
content_copy Copy

Myself