generate functionFri, 17 Feb 2023

generate user interface that resembles to the google translator with "Nyakyusa langauge" and swahili language

def translate(phrase): translation = "" for letter in phrase: if letter.lower() in "bcdfghjklmnpqrstvwxyz": translation = translation + "o" + letter else: translation = translation + letter return translation print(translate(input("Enter a phrase: ")))

Questions about programming?Chat with your personal AI assistant