HackMIT/inbox.py

11 lines
187 B
Python
Raw Permalink Normal View History

2022-10-01 13:22:53 +00:00
inbox = {}
def Send(data, recipient):
if recipient not in inbox.keys():
inbox[recipient] = []
inbox[recipient].append(data)
def Fetch(user):
return inbox[user]