human
Astonishing Numbers | Function to concatenate two integers into one.
Convert both the integers to string.
Concatenate both strings.
Convert the concatenated string to integer.
return the formed integer.
Function to check if N is a Astonishing number.
Loop to find sum of all integers from i till the sum becomes >= n.
variable to store sum of all integers from i to j and check if sum and concatenation equals n or not.
finding concatenation of i and j.
condition for Astonishing number.
Given Number.
Function Call"
Solution in Python:
 What is a code to astonishing Numbers and the other steps required?
assistant
#Here is code to astonishing Numbers and the other steps required.
 def concat ( a , b ) :
	s1 = str ( a )
	s2 = str ( b )
	s = s1 + s2
	c = int ( s )
	return c
def isAstonishing ( n ) :
	for i in range ( n ) :
		sum = 0
		for j in range ( i , n ) :
			sum += j
			if ( sum == n ) :
				concatenation = concat ( i , j )
				if ( concatenation == n ) :
					return True
	return False
n = 429
if ( isAstonishing ( n ) ) :
	print ( ' Yes ' )
else :
	print ( ' No ' )