import random


def randomWalk(steps):
    """Returns coordinates after given number of steps in a cartesian coordinate system."""
    path = {'x': [], 'y': []}
    x, y = 0, 0
    for i in range(steps):
        (dx, dy) = random.choice([(0, 1), (0, -1), (1, 0), (-1, 0)])
        x += dx
        y += dy
        path['x'].append(x)
        path['y'].append(y)
    return path