<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_platform():
 """get Mac OS X version or kernel version if mac version is not found"""

    mac_version = str(platform.mac_ver()[0]).strip()    # e.g. 10.11.2
    if mac_version:
        return 'OS X %s' % mac_version
    return platform.platform().strip()