human
Find the nth term of the series 0 , 8 , 64 , 216 , 512 , . . . | Function to return the nth term of the given series.
Common difference.
First term.
nth term.
nth term of the given series.
Driver code"
How can the above be solved in Python?

Write me a code to find the nth term of the series 0 , 8 , 64 , 216 , 512 ,?
assistant
#Here is code to find the nth term of the series 0 , 8 , 64 , 216 , 512 , .
 def term ( n ) :
	d = 2
	a1 = 0
	An = a1 + ( n - 1 ) * d
	An = An ** 3
	return An ;
n = 5
print ( term ( n ) )