human
Give me a code to count numbers upto N which are both perfect square and perfect cube and the other steps required given the following:
Count numbers upto N which are both perfect square and perfect cube | Function to return required count.
Driver code.
function call to print required answer"
Solution in Python:
assistant
#Here is code to count numbers upto N which are both perfect square and perfect cube and the other steps required.
 def SquareCube ( N ) :
	cnt , i = 0 , 1
	while ( i ** 6 <= N ) :
		cnt += 1
		i += 1
	return cnt
N = 100000
print ( SquareCube ( N ) )