Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save riegie/10a0f46df22d483bffe2488cfbde9f39 to your computer and use it in GitHub Desktop.
Save riegie/10a0f46df22d483bffe2488cfbde9f39 to your computer and use it in GitHub Desktop.
from itertools import product
policy_statuses = ['processing', 'active', 'pending-suspension', 'suspended', 'pending-cancellation', 'cancelled']
vehicle_statuses = ['processing', 'active', 'inactive']
inactive_user = [True, False]
failed_payments = [0,1,2,3]
expiring_user = [True, False]
cartesian_product = list(product(policy_statuses, vehicle_statuses, inactive_user, failed_payments, expiring_user))
dictionary = {}
for product in cartesian_product:
dictionary[product] = ''
print(dictionary)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment