Skip to content

Instantly share code, notes, and snippets.

View izakp's full-sized avatar

Isac Petruzzi izakp

  • Shopify
  • New York, NY
View GitHub Profile
@izakp
izakp / split_check.py
Last active February 17, 2026 02:32
Split a check
import sys
def split_check(*args):
"""
split_check(('josh', 50), ('jake', 100), ('isac', 100))
"""
total = 0
for name, amount in args:
total += amount