human
Calculate 7 n / 8 without using division and multiplication operators | Python program to evaluate ceil ( 7 n / 8 ) without using * and /.
Note the inner bracket here . This is needed because precedence of ' - ' operator is higher than '<<.
Driver program to test above function"
How can the above be solved in Python?
 Write me a code to calculate 7 n / 8 without using division and multiplication operators and the other steps required?
assistant
#Here is code to calculate 7 n / 8 without using division and multiplication operators and the other steps required.
 def multiplyBySevenByEight ( n ) :
'
	return ( n - ( n >> 3 ) )
n = 9
print ( multiplyBySevenByEight ( n ) )