human
Count of possible subarrays and subsequences using given length of Array | Function to count the subarray for the given array.
Function to count the subsequence for the given array length.
Driver Code"
How can the above be solved in Python?

=====
Write me a code to count of possible subarrays and subsequences using given length of Array and the other steps required?
assistant
#Here is code to count of possible subarrays and subsequences using given length of Array and the other steps required.
 def countSubarray ( n ) :
	return ( ( n ) * ( n + 1 ) ) // 2
def countSubsequence ( n ) :
	return ( 2 ** n )
if __name__ == " _ _ main _ _ " :
	n = 5
	print ( countSubarray ( n ) )
	print ( countSubsequence ( n ) )