Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Follow Instructions by Cyrus490
def follow(instructions):
x = 0 - instructions.count("l") + instructions.count("r")
y = 0 + instructions.count("f") - instructions.count("b")
return (x, y)
Aug. 11, 2020