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)

Want to kickstart your project?Use the new AI Studio to create your code