Should be simple but I'm hitting a block on this.  The following code will pull all my equities but I cant figure out how to isolate QQQ from SPY.  If I log the results of this and I own both QQQ and SPY it shows the following in the log:  How do I isolate out QQQ from SPY from investedQQQequity?

investedQQQequity = [symbol for symbol, holding in self.Portfolio.items() if holding.IsLong and holding.Type == SecurityType.Equity]

  

Log:

investedQQQequity: [<QuantConnect.Symbol object at 0x7f3d277fbe00>, <QuantConnect.Symbol object at 0x7f3d277fc080>]