DEV Community

Discussion on: Daily Challenge #244 - Search for Letters

Collapse
 
peritract profile image
Dan Keefe

I had roughly the same idea:

def isin(text):
  text = text.lower()
  return "".join([str(1)
                  if letter in text
                  else str(0)
                  for letter in "abcdefghhijklmnopqrstuvwxyz"])