Solución
solution.tsTypeScript
def invertir_objeto(obj: dict[str, str]) -> dict[str, str]:
# Tu código aquí
new_dict = {}
for key,value in obj.items():
new_dict[value] = key
return new_dict0respuestas
def invertir_objeto(obj: dict[str, str]) -> dict[str, str]:
# Tu código aquí
new_dict = {}
for key,value in obj.items():
new_dict[value] = key
return new_dictAún no hay respuestas
¡Sé el primero en responder!
Recuerda ser amable. Estás comentando la solución de otra persona. Comparte tu perspectiva de forma constructiva y respetuosa.