Step through my `green glass door`.

You can take the `moon`, but not the `sun`.

You can take your `slippers`, but not your `sandals`.

You can go through `yelling`, but not `shouting`.

You can't run through `fast`, but you can run with `speed`.

You can take a `sheet`, but not your `blanket`.

You can wear your `glasses`, but not your `contacts`.

Have you figured it out? Good! Then write a program that can figure it out as well.

Difficulty: EASY
Starter code: def step_through_with(s):
	

Solutions:
def step_through_with(s):
	return any((m == n for (m, n) in zip(s, s[1:])))


import re

def step_through_with(s):
	return re.compile('([a-z])\\1', re.I).search(s) is not None


def step_through_with(s):
	prev = ''
	for letter in s:
		if prev == letter:
			return True
		prev = letter
	return False


import re

def step_through_with(s):
	return bool(re.search('(.)\\1', s))


def step_through_with(s):
	for letter in 'abcdefghijklmnopqrstuvwxyz':
		if letter * 2 in s:
			return True
	return False


def step_through_with(s):
	return any(map(str.__eq__, s, s[1:]))


def step_through_with(s):
	return any((c1 == c2 for (c1, c2) in zip(s, s[1:])))


def step_through_with(s):
	return any((s[i - 1] == x for (i, x) in enumerate(s[1:], 1)))


def step_through_with(s):
	return any((l + l in s for l in s))


step_through_with = lambda s, r=__import__('re').compile('([a-zA-Z])\\1'): bool(r.search(s))