# wwwoooorrlddddd
def word (x):
#w = "wwwoooorrlddddd"
if len (x) == 1:
return x
if x[0] == x[1]:
return word (x[1:])
#else:
#return word(x [1:])
#return x
return x[0] + word(x [1:])
print (word ("wwwooorrrld"))
To embed this project on your website, copy the following code and paste it into your website's HTML: