HireEdge Sign in
Code Trace · Python · free

Read the code.
Write what it prints.

Eight short Python programs, 12 minutes. You do not write any code — you read each program and type its exact output. There is nothing to paste and nothing to look up: either you can follow what the code does, or you cannot.

def add(item, bag=[]):
    bag.append(item)
    return bag

print(add(1))
print(add(2))

If you wrote [1] then [2], this test is for you.

Sign in to start → Create a free account

Why companies ask this: a candidate can paste a working answer into a coding test, and many do. Nobody can paste their way through reading a program.