Create a Python function to calculate the volume of a cube by taking its side length as input.
side_length = 5
def cube_volume(side_length):
    return side_length ** 3

volume = cube_volume(side_length)
print(f"Volume of cube is {volume}")