input: Write a python function to convert a list of words to a dictionary with each word as a key and the value as 1.
  assert to_dict(["Hello", "World", "Welcome"]) == {"Hello": 1, "World": 1, "Welcome": 1}
  assert to_dict(["Apple", "Banana", "Cherry"]) == {"Apple": 1, "Banana": 1, "Cherry": 1}
  assert to_dict(["Test", "Case", "Example"]) == {"Test": 1, "Case": 1, "Example": 1}
output: def to_dict(words):
      return {word: 1 for word in words}