<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def to_shared_lib(name):
 """Return library name depending on platform. Parameters name : str Name of library. Returns ------- str Name of library with extension. """

    if sys.platform.startswith('linux'):
        return name + '.so'
    elif sys.platform.startswith('darwin'):
        return name + '.dylib'
    elif sys.platform.startswith('win'):
        return name + '.dll'
    else:
        sys.exit(1)