Create generalHelper.py

This commit is contained in:
Josh Smith
2019-02-11 06:58:16 -05:00
committed by GitHub
parent cd08451cd2
commit 3f69038285

7
helpers/generalHelper.py Normal file
View File

@@ -0,0 +1,7 @@
def zingonify(d):
"""
Zingonifies a string
:param d: input dict
:return: zingonified dict as str
"""
return "|".join(f"{k}:{v}" for k, v in d.items())