human
Number of cells in the Nth order figure | Function to return the number of cells in the nth order figure of the given type.
Driver code"
How can the above be solved in Python?
 ... Can you provide a code to number of cells in the Nth order figure and the other steps required?
assistant
#Here is code to number of cells in the Nth order figure and the other steps required.
 def cntCells ( n ) :
	cells = pow ( n , 2 ) + pow ( n - 1 , 2 ) ;
	return cells ;
if __name__ == " _ _ main _ _ " :
	n = 3 ;
	print ( cntCells ( n ) ) ;