human
Give me a Python program to check string is path.
assistant
Here is a Python program to check string is path

import os

def is_path(path):
    """
    Check if a string is a path.
    """
    if path.startswith('/'):
        return True
    else:
        return False

# Enter the path
path = "/home/user/path"

# Calling the function
print((is_path(path)))

#Example Output
# True

#Remember to inspect code for bugs.