human
Perfect Cube | Function to check if a number is a perfect Cube or not.
Iterate from 1 - N.
Find the cube of every number.
Check if cube equals N or not.
Driver code.
Function call"
Solution in Python:

Write me a code to perfect Cube and the other steps required?
assistant
#Here is code to perfect Cube and the other steps required.
 def perfectCube ( N ) :
	cube = 0 ;
	for i in range ( N + 1 ) :
		cube = i * i * i ;
		if ( cube == N ) :
			print ( " Yes " ) ;
			return ;
		elif ( cube > N ) :
			print ( " NO " ) ;
			return ;
if __name__ == " _ _ main _ _ " :
	N = 216 ;
	perfectCube ( N ) ;