Anonymous Anonymous - 3 months ago
127 0

No description

ActionScript

combo

*** Written by Khay ***

def combo(a, b, c):
    toString = str(a) + str(b) + str(c)
    new = []
    for i in range(3):
        if i == 0:
            new += [toString[:]]
            new += [toString[0] + toString[:-3:-1]]
        elif i == 1:
            new += [toString[1] + toString[0] + toString[2]]
            new += [toString[1] + toString[2] + toString[0]]
        else:
            new += [toString[2] + toString[:2]]
            new += [toString[2] + toString[-2::-1]]
    return new

print combo(4,5,6)
Comments