I want to add the constituents of SPY into a list like the below, but so far I've only learnt how to do this manually line by line like the below. Is there a way which I can add them all at once?

        symbols = []
        symbols.append(self.AddEquity('AAPL', Resolution.Daily).Symbol)
        symbols.append(self.AddEquity('MSFT', Resolution.Daily).Symbol)
        symbols.append(self.AddEquity("AMZN", Resolution.Daily).Symbol)

Author