Question: Im using python. I am confused at the four lines of code (line 43 thru 45) it is asking me to return true if the

Im using python. I am confused at the four lines of code (line 43 thru 45) it is asking me to return true if the substring is "password" or "iloveyou". Is this it any different for a substring than it is for a string.

Here is my repl: https://repl.it/@mikeman145/121-Account-Generator-starter-code

# this function should return True if s

# has the substring "password" or "iloveyou"

def has_common(s):

return "password" or "iloveyou" in s

pass

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!