newcompany = input("Enter Company Name: ") for stock in portfolioStock: if newcompany.lower() == stock[0].lower(): newcompany = input("Company