Question: PLEASE EXPLAIN CODE SINCE I WANT TO UNDERSTAND Write a function named get _ num _ pepsi _ or _ coke which calculates and returns
PLEASE EXPLAIN CODE SINCE I WANT TO UNDERSTAND Write a function named getnumpepsiorcoke which calculates and returns the number of ads in the dataset that either Pepsi or CocaCola ran. That is what is the number of ads in which the brand is either 'Pepsi' or 'CocaCola'. Return an integer value that is or greater. The function should print nothing. Do not use a list comprehension to compute the answer. You will be reimplementing this function below with a list comprehension.
Once the function is invoked and returns, the program should print the result as follows. Include the Qnumber and the text exactly as:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
