Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def repeat_counter(input):
- for i in range(len(input)):
- if isinstance(input[i], str):
- input[i] = input[i].lower()
- counter = list( dict.fromkeys(input) )
- if ( len(input) - len(counter) + 1 ) % 2 == 0:
- return True
- return False
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement