human
Write me a code to round the given number to nearest multiple of 10 and the other steps required given the following:
Round the given number to nearest multiple of 10 | function to round the number.
Smaller multiple.
Larger multiple.
Return of closest of two.
driver code"
How can the above be solved in Python?
assistant
#Here is code to round the given number to nearest multiple of 10 and the other steps required.
 def round ( n ) :
	a = ( n // 10 ) * 10
	b = a + 10
	return ( b if n - a > b - n else a )
n = 4722
print ( round ( n ) )