Created
October 31, 2015 13:06
-
-
Save popey456963/f83af013fc659509a1de to your computer and use it in GitHub Desktop.
Double Words
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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