human
Number of edges in a perfect binary tree with N levels | Function to return the count of edges in an n - level perfect binary tree.
Driver code"
How can the above be solved in Python?
 Can you provide a code to number of edges in a perfect binary tree with N levels and the other steps required?
assistant
#Here is code to number of edges in a perfect binary tree with N levels and the other steps required.
 def cntEdges ( n ) :
	edges = 2 ** n - 2 ;
	return edges ;
if __name__ == " _ _ main _ _ " :
	n = 4 ;
	print ( cntEdges ( n ) ) ;