Created
December 26, 2019 12:13
-
-
Save Fhernd/3d1f0ac65763a8aad6780ada3e8c9ccd to your computer and use it in GitHub Desktop.
# Ejercicio 426: Convertir un objeto lista en un objeto tupla con la clase tuple.
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 426: Convertir un objeto lista en un objeto tupla con la clase tuple. | |
lista = list(range(1, 11)) | |
print(len(lista)) | |
print(type(lista)) | |
print(lista) | |
print() | |
tupla = tuple(lista) | |
print(len(tupla)) | |
print(type(tupla)) | |
print(tupla) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment