Created
December 26, 2019 13:53
-
-
Save Fhernd/bf8102d75b988f9194f9c76ed104128e to your computer and use it in GitHub Desktop.
# Ejercicio 431: Convertir un objeto tupla en un objeto diccionario.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Ejercicio 431: Convertir un objeto tupla en un objeto diccionario. | |
lenguajes = (('Python', '3.8.1'), ('JavaScript', 'ES6'), ('C#', '7.0'), ('PHP', '7.1.2')) | |
print(lenguajes) | |
lenguajes_diccionario = dict((l, v) for l, v in lenguajes) | |
print() | |
print(type(lenguajes_diccionario)) | |
print(lenguajes_diccionario) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment