Surprise! We've been running on hardware provided by BuyVM for a few months and wanted to show them a little appreciation.
Running a paste site comes with unique challenges, ones that aren't always obvious and hard to control. As such, BuyVM offered us a home where we could worry less about the hosting side of things and focus on maintaining a clean and useful service! Go check them out and show them some love!
Description: Implementation of combo()
Submitted on February 22, 2015 at 09:34 PM

Section 1 (Python)

# combo(['swallow', 'snake', 'parrot'], 'abc')
# Output:
# [('swallow', 'a'), ('snake', 'b'), ('parrot', 'c')]
# If you use list.append(), you'll want to pass it a tuple of new values.
# Using enumerate() here can save you a variable or two.

# It helps seeing what it should look like before:
# combo(['swallow', 'snake', 'parrot'], 'abc')
# ...and the result after:
# [('swallow', 'a'), ('snake', 'b'), ('parrot', 'c')]

def combo(one, two):
  results = []
  for step, value in enumerate(two): # same length, remember?
    results.append((one[step], value))
  return results