human
Write me a code to find temperature of missing days using given sum and average and the other steps required given the following:
Find temperature of missing days using given sum and average | Function for finding the temperature.
Store Day1 - Day2 in diff.
Remaining from s will be Day1.
Print Day1 and Day2.
Driver Code.
Functions"
Solution in Python:
assistant
#Here is code to find temperature of missing days using given sum and average and the other steps required.
 def findTemperature ( x , y , s ) :
	diff = ( x - y ) * 6
	Day2 = ( diff + s ) // 2
	Day1 = s - Day2
	print ( " Day1 ▁ : ▁ " , Day1 )
	print ( " Day2 ▁ : ▁ " , Day2 )
if __name__ == ' _ _ main _ _ ' :
	x = 5
	y = 10
	s = 40
	findTemperature ( x , y , s )