Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created December 16, 2018 00:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/7e87e46fdd92d4b380707b6a2e12c65d to your computer and use it in GitHub Desktop.
Save parzibyte/7e87e46fdd92d4b380707b6a2e12c65d to your computer and use it in GitHub Desktop.
Ejemplificar switch para obtener valor created by parzibyte - https://repl.it/@parzibyte/Ejemplificar-switch-para-obtener-valor
def obtener_nombre_dia(numero_dia):
dias = {
0: "Domingo",
1: "Lunes",
#Aquí los demás días...
}
return dias.get(numero_dia, "Desconocido")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment