human
Count total bits in a number | Function to get no of bits in binary representation of positive integer.
Driver program"
How can the above be solved in Python?

=====
What is a code to count total bits in a number and the other steps required?
assistant
#Here is code to count total bits in a number and the other steps required.
 def countBits ( n ) :
	count = 0
	while ( n ) :
		count += 1
		n >>= 1
	return count
i = 65
print ( countBits ( i ) )