Skip to content

Instantly share code, notes, and snippets.

@miltonlab
Created May 4, 2015 14:23
Show Gist options
  • Save miltonlab/aaa9e8693a90d90d5d87 to your computer and use it in GitHub Desktop.
Save miltonlab/aaa9e8693a90d90d5d87 to your computer and use it in GitHub Desktop.
Operaciones con arreglos en Python
edades = numpy.array[(20,23,22)]
#lectura
print (edades[2])
#escritura
edades[1] = 27
#presentacion
for i in range(0, len(edades)):
print (edades[i])
#aunque en python no hace falta el bucle
print(edades)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment