True False, but it prints False True.
def has_tag(text, tag):
if text.find(tag):
return True
return False
print(has_tag("#news today", "#news"), has_tag("plain", "#"))
Which one change makes it print True False?Log in to join the discussion.
Loading…