Skip to content

Instantly share code, notes, and snippets.

Vedant shetty vedantshetty

Block or report user

Report or block vedantshetty

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View sf.py
import csv
import unittest
def export_inventory(inventory, filename="export_inventory.csv"):
l = []
with open(filename, "w") as csvfile:
new = csv.writer(csvfile, quoting=csv.QUOTE_MINIMAL)
for key,value in inventory.items():
l+=[key for _ in range(value)]
new.writerow(l)
class TestEquality(unittest.TestCase):
You can’t perform that action at this time.