# Start writing code here...
import numpy as np
vector = np.array([1,2,4,8,16])
print(vector)
[ 1 2 4 8 16]
matrix = np.array([[5,10], [15,30]])
print(matrix)
[[ 5 10]
[15 30]]
lista_1 = [100, 200, 300, 400]
lista_2 = [3,4,5,6]
vector_2 = np.array(lista_1)
print(vector_2)
matrix_2 = np.array([lista_1, lista_2])
print(matrix_2)
[100 200 300 400]
[[100 200 300 400]
[ 3 4 5 6]]
type(vector)
vector.shape
matrix_2.shape
vector.dtype
matrix.dtype
vector_4 = np.array([1.4, 5.6, 6.8])
vector_4.dtype
colaboradores = ['Ozz', 'James', 'Kelly', 'Letty']
sueldo = [30000, 50000, 25000, 45000]
print(colaboradores)
print(sueldo)
nomina = np.array([colaboradores, sueldo])
print(nomina)
['Ozz', 'James', 'Kelly', 'Letty']
[30000, 50000, 25000, 45000]
[['Ozz' 'James' 'Kelly' 'Letty']
['30000' '50000' '25000' '45000']]
type(nomina)
nomina.shape
nomina.dtype
type(colaboradores)
type(sueldo)
colaboradores.shape
Thereβs an error in this block
Try running the app again, or contact the appβs creator