human
Count of binary strings of given length consisting of at least one 1 | Function to return the count of Strings.
Calculate pow ( 2 , n ).
Return pow ( 2 , n ) - 1.
Driver Code"
Solution in Python:
 ... Can you provide a code to count of binary strings of given length consisting of at least one 1 and the other steps required?
assistant
#Here is code to count of binary strings of given length consisting of at least one 1 and the other steps required.
 def count_Strings ( n ) :
	x = 1 ;
	for i in range ( 1 , n ) :
		x = ( 1 << x ) ;
	return x - 1 ;
if __name__ == ' _ _ main _ _ ' :
	n = 3 ;
	print ( count_Strings ( n ) ) ;