Question: Tasks Using the y-loop that you created in the previous step, add an if statement that checks if y is equal to one. If that

Tasks Using the y-loop that you created in the previous step, add an if statement that checks if y is equal to one. If that is the case, break out the inner loop. main.py 1 companies = [['Google', 'Facebook', 'Apple'). 2 ('Worner Bros. Pictures', '20th Century Fox', 'Universal Pictures'), 3 ['whole foods'. Starbucks', 'Walmart' ]] 5 6 for * in range(1en(companies)): 7 for y in rangelen(companies[x])): 11 (y in rongo(lon(companies[x])) -- 1): break else: print("This company name has length of :"...etz(ion(companios[x][y]))) 10 11 12 13
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
