human
Triplet with no element divisible by 3 and sum N | Function to print a , b and c.
first loop.
check for 1 st number.
second loop.
check for 2 nd number.
third loop.
Check for 3 rd number.
Driver Code"
How can the above be solved in Python?
 ... What is a code to triplet with no element divisible by 3 and sum N and the other steps required?
assistant
#Here is code to triplet with no element divisible by 3 and sum N and the other steps required.
 def printCombination ( n ) :
	for i in range ( 1 , n ) :
		if ( i % 3 != 0 ) :
			for j in range ( 1 , n ) :
				if ( j % 3 != 0 ) :
					for k in range ( 1 , n ) :
						if ( k % 3 != 0 and ( i + j + k ) == n ) :
							print ( i , j , k ) ;
							return ;
n = 233 ;
printCombination ( n ) ;