Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

NumPy left_shift Code When inputs and bit shift are numbers

# welcome to softhunt.net
# Python program explaining
# left_shift() function

import numpy as np
num = 3
bit_shift_num = 2

print ("Input number : ", num)
print ("Number of bit shift : ", bit_shift_num )
	
ans = np.left_shift(num, bit_shift_num)
print ("After left shifting 2 bit : ", ans)
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #NumPy #Code #When #inputs #bit #shift #numbers
ADD COMMENT
Topic
Name
6+5 =