Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Follow Instructions by logicalladybuglifestyle
def follow(letters):
x, y = 0, 0
for i in letters:
if i == 'f':
y += 1
elif i == 'b':
y -= 1
elif i == 'l':
x -= 1
elif i == 'r':
x += 1
return (x, y)
March 29, 2020
Comments: