human
n | Python3 program to find n - th number with sum of digits as 10..
Find sum of digits in current no ..
If sum is 10 , we increment count.
If count becomes n , we return current number ..
Driver Code"
How can the above be solved in Python?

Give me a code to n and the other steps required?
assistant
#Here is code to n and the other steps required.
 def findNth ( n ) :
	count = 0 ;
	curr = 19 ;
	while ( True ) :
		sum = 0 ;
		x = curr ;
		while ( x > 0 ) :
			sum = sum + x % 10 ;
			x = int ( x / 10 ) ;
		if ( sum == 10 ) :
			count += 1 ;
		if ( count == n ) :
			return curr ;
		curr += 9 ;
	return - 1 ;
print ( findNth ( 5 ) ) ;