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
Get step-by-step solutions from verified subject matter experts
