Error local variable has been referenced before assignment
问题 I am new to the stackoverflow community, and new to programming in general. One of my first projects is to build a web scraper to see if I can collect market data. In attempting to build this, I keep getting stuck with an unbound local error. I am aware that this has something to do with how I am instantiating my class and how I am referencing the variable, strong text but not sure how to trouble shoot it.. class Stock: def __init__(self,symbol,company): self.symbol = symbol self.company =