Generation

generate functionSat, 13 May 2023

traductor

def traductor(frase): # check if type str if type(frase) == str: # check if it's a sentence if "." in frase: return "frase" elif "," in frase: return "lista" else: return "palabra" else: return "Ingrese un valor valido" traductor(1)

Questions about programming?Chat with your personal AI assistant