def novel_or_knockoff(name, off_brand):
# novel_or_knockoff()
# @type:
# @rtype:
count = 0
for index in range(0,len(name)):
if name[index] != off_brand[index]:
count = count + 1
if count >= 3:
return "Novelty"
else:
return "Knockoff"
# Example: if Playstation [index] != playstation [index] :
count = count + 1
if count >= 3:
return "Novelty"
else;
return "Knokoff"
def novel_or_knockoff(name, off_brand):
count = 0
for index in range(len(name)):
if name[index] != off_brand[index]:
count += 1
if count = 3:
return "Novelty"
return "Knockoff"
Comments
Leave a comment