#! /usr/bin/env python

import random

givers = ['John', 'Sarah', 'Mike', 'Jennifer']
getters = list(givers)
used = []

for giver in givers:
  getter = random.choice(getters)
  if giver != getter:
    if getter not in used:
      pair = '{} -> {}'.format(giver, getter)
      print(pair)
      used.append(getter)
      getters.remove(getter)
  else:
    givers.append(giver)  




72f5eab618808ddcfbfdfdee712069900c1b97ff
<mask token>

<mask token>
for giver in givers:
    getter = random.choice(getters)
    if giver != getter:
        if getter not in used:
            pair = '{} -> {}'.format(giver, getter)
            print(pair)
            used.append(getter)
            getters.remove(getter)
    else:
        givers.append(giver)

<mask token>
givers = ['John', 'Sarah', 'Mike', 'Jennifer']
getters = list(givers)
used = []
for giver in givers:
    getter = random.choice(getters)
    if giver != getter:
        if getter not in used:
            pair = '{} -> {}'.format(giver, getter)
            print(pair)
            used.append(getter)
            getters.remove(getter)
    else:
        givers.append(giver)

import random
givers = ['John', 'Sarah', 'Mike', 'Jennifer']
getters = list(givers)
used = []
for giver in givers:
    getter = random.choice(getters)
    if giver != getter:
        if getter not in used:
            pair = '{} -> {}'.format(giver, getter)
            print(pair)
            used.append(getter)
            getters.remove(getter)
    else:
        givers.append(giver)

#! /usr/bin/env python

import random

givers = ['John', 'Sarah', 'Mike', 'Jennifer']
getters = list(givers)
used = []

for giver in givers:
  getter = random.choice(getters)
  if giver != getter:
    if getter not in used:
      pair = '{} -> {}'.format(giver, getter)
      print(pair)
      used.append(getter)
      getters.remove(getter)
  else:
    givers.append(giver)  



