Learn practical skills, build real-world projects, and advance your career

Logic gates with Numpy binary routines:

Numpy is python library which is mostly used for numerical computation and can also handle other non numerical operation like string manipulation.
The beauty of numpy is its speed which is about x100 faster than regular python operations like loops, also it has a very rich library of well documented functions 5 of which I am going to explain with examples how they work and how to use them

5 common numpy functions

  • function1 = np.random.randint
  • function2 = np.base_repr
  • function3 = np.bitwise_and
  • function4 = np.bitwise_or
  • function5 = np.bitwise_xor
!pip install jovian --upgrade -q
import jovian
jovian.commit(project='numpy-array-operations')
[jovian] Attempting to save notebook.. [jovian] Updating notebook "zivernay/numpy-array-operations" on https://jovian.ml/ [jovian] Uploading notebook.. [jovian] Capturing environment.. [jovian] Committed successfully! https://jovian.ml/zivernay/numpy-array-operations

Let's begin by importing Numpy and listing out the functions covered in this notebook.