a guest Jan 18th, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function validateAnswer(answer, randomLetters[])
  2.     uniqueValid = []
  3.     for char in answer:
  4.         if char in randomLetters:
  5.             uniqueValid.append(char)
  6.             if char in uniqueValid:
  7.                 pass
  8.     return uniqueValid.len()
  9.         else:
  10.             return 0
  11. endFunction
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand