SHARE
TWEET

Exam

morimoto_ltd Sep 20th, 2019 (edited) 89 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def repeat_counter(input):
  2.     for i in range(len(input)):
  3.         if isinstance(input[i], str):
  4.             input[i] = input[i].lower()
  5.     counter = list( dict.fromkeys(input) )
  6.     if ( len(input) - len(counter) + 1 ) % 2 == 0:
  7.         return True
  8.     return False
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
 
Top