How can you create a dictionary with ETF symbol as keys and holdings as values in Python?


e.g. {"XLK":["MSFT", "AAPL",...], "XLC":["META","GOOGL",...],...}

The dictionary must be up-to-date when you access it monthly or quarterly.