Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Striped Words by jacekgrycza
V = "AEIOUY"
C = "BCDFGHJKLMNPQRSTVWXZ"
def checkio(text):
x=[]
i=0
print(len(text))
while(i0 and len(x[-1])<2) or not x[-1].isalpha()):
del x[-1]
i=i+1
k=0
for p in x:
c=0
for j in range(0,len(p)-1):
if ( ((p[j] in V or p[j].upper() in V) and (p[j+1] in V or p[j+1].upper() in V)) or ((p[j] in C or p[j].upper() in C) and (p[j+1] in C or p[j+1].upper() in C)) ):
c=1
break
if c==0:
k=k+1
return k
Oct. 26, 2016