Round to a nearest multiple of a constant?

Based on the code I found on next link, you can round up or down to the closest multiple:
Code link: Round the given number to nearest multiple of 10 - GeeksforGeeks

# Python3 code to round the given

# integer to a whole number

# which ends with zero.

# function to round the number

def round ( n ):

# Smaller multiple

a = (n / / 10 ) * 10

# Larger multiple

b = a + 10

# Return of closest of two

return (b if n - a > b - n else a)

# driver code

n = 4722

print ( round (n))

# This code is contributed by "Sharad_Bhardwaj".