human
Check whether the triangle is valid or not if angles are given | Function to check if sum of the three angles is 180 or not.
Check condition.
Driver code.
function calling and print output"
Solution in Python:
 ... Write me a code to check whether the triangle is valid or not if angles are given and the other steps required?
assistant
#Here is code to check whether the triangle is valid or not if angles are given and the other steps required.
 def Valid ( a , b , c ) :
	if ( ( a + b + c == 180 ) and a != 0 and b != 0 and c != 0 ) :
		return True
	else :
		return False
if __name__ == " _ _ main _ _ " :
	a = 60
	b = 40
	c = 80
	if ( Valid ( a , b , c ) ) :
		print ( " Valid " )
	else :
		print ( " Invalid " )