Question: Consider the following code: if any ( keyword in feedback.lower ( ) for keyword in positive _ keywords ) : positive _ count + =
Consider the following code:
if anykeyword in feedback.lower for keyword in positivekeywords: positivecount
What does this code do
a It increments the positivecount if the feedback contains any word in positivekeywords.
b It creates a new list of feedbacks that contain positive keywords.
c It converts positivekeywords to lowercase and checks if feedback is present in it
d It adds to feedback for every positive keyword found.
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
