human
Find Nth term of the series 0 , 2 , 4 , 8 , 12 , 18. . . | Calculate Nth term of series.
Driver Code"
How can the above be solved in Python?
assistant
#Here is code to find Nth term of the series 0 , 2 , 4 , 8 , 12 , 18.
 def nthTerm ( N ) :
	return ( N + N * ( N - 1 ) ) // 2
if __name__ == " _ _ main _ _ " :
	N = 5
	print ( nthTerm ( N ) )