human
Number of cards needed build a House of Cards of a given level N | Function to find number of cards needed.
Driver Code"
How can the above be solved in Python?
assistant
#Here is code to number of cards needed build a House of Cards of a given level N and the other steps required.
 def noOfCards ( n ) :
	return n * ( 3 * n + 1 ) // 2
n = 3
print ( noOfCards ( n ) )