Skip to content

Instantly share code, notes, and snippets.

@popey456963
Created October 31, 2015 13:06
Show Gist options
  • Save popey456963/f83af013fc659509a1de to your computer and use it in GitHub Desktop.
Save popey456963/f83af013fc659509a1de to your computer and use it in GitHub Desktop.
Double Words
double=0
for i in input().split():
past = ""
for char in i:
if char.lower() == past.lower():
double+=1
break
else:
past = char
print(double)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment