loading...

re: Daily Challenge #244 - Search for Letters VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Python 3.7 # solution import string change = lambda s: "".join(['1' if c in s.lower() else '0' for c in string.ascii_lowercase]) # testcases for...
 

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"])
code of conduct - report abuse