Challenge yourself

Beginner
Intermediate
Expert

Complete execution flow of the following program

Misses: 0
def calculate(a, b):
    if a == 'first' and b < 0:
        return b + b
    elif a != 'first' and b > 0:
        return b * 2
    return b