Write a Python program to create a dictionary containing the given list of numbers and their squares as values.
[1,2,3,4,5]
my_list = [1,2,3,4,5]

squares_dictionary = {}

for x in my_list:
  squares_dictionary[x] = x**2

print(squares_dictionary)