human
Write a function to check whether the given number is undulating or not. Here is a solution in Python: ... Give me a the Python program you requested?
assistant
#Here is the Python program you requested.
 def is_undulating(n): 
	n = str(n)
	if (len(n) <= 2): 
		return False
	for i in range(2, len(n)): 
		if (n[i - 2] != n[i]): 
			return False
	return True