Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
ord solution in Clear category for Follow Instructions by katnic
def follow(instructions):
x, y = 0, 0
for i in instructions:
if ord(i) > 102: x += (ord(i) - 111) / 3
else: y += (ord(i) - 100) / 2
return (x, y)
Aug. 27, 2021