Generate a program in Python to convert a list of strings to a dictionary where all the values are 1.
words = ["Hello", "World", "Welcome"]
def to_dict(words):
    result = {}
    for word in words:
        result[word] = 1
    return result

result = to_dict(["Hello", "World", "Welcome"])
print(result)