human
Can you provide a code to 9 's complement of a decimal number and the other steps required given the following:
9 's complement of a decimal number | Python3 program to find 9 's complement of a number..
Driver code"
Solution in Python:
assistant
#Here is code to 9 's complement of a decimal number and the other steps required.
 def complement ( number ) :
	for i in range ( 0 , len ( number ) ) :
		if ( number [ i ] != ' . ' ) :
			a = 9 - int ( number [ i ] )
			number = ( number [ : i ] + str ( a ) + number [ i + 1 : ] )
	print ( "9 ' s ▁ complement ▁ is ▁ : ▁ " , number )
if __name__ == ' _ _ main _ _ ' :
	number = "345.45"
	complement ( number )