import sys def isAlly(ally): if ally == 'hutt': return 1 return 0 def isEnemy(enemy): if enemy == 'rebel' or enemy == 'imperial': return 1 return 0