Skip to content

Instantly share code, notes, and snippets.

@ihzarizkyk
Last active May 27, 2020 00:10
Show Gist options
  • Save ihzarizkyk/2bb09400d60832e31eac601546ef685d to your computer and use it in GitHub Desktop.
Save ihzarizkyk/2bb09400d60832e31eac601546ef685d to your computer and use it in GitHub Desktop.
import numpy as np
a = np.array([1,2,3])
b = np.array([1,2,3])
print(a)
print(b)
print(a+b)
print(a-b)
print(a*b)
'''
Output a : [1 2 3]
Output b : [1 2 3]
Output Penjumlahan :
[2 4 6]
Output Pengurangan :
[0 0 0]
Output Perkalian :
[1 4 9]
'''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment