Skip to content

Instantly share code, notes, and snippets.

@cswinter
Created August 12, 2018 18:11
Show Gist options
  • Save cswinter/2731064e32b7db5f9df6d76aaa115a30 to your computer and use it in GitHub Desktop.
Save cswinter/2731064e32b7db5f9df6d76aaa115a30 to your computer and use it in GitHub Desktop.
import sys
for line in sys.stdin:
print ','.join([item if len(item.strip()) else '\N'
for item in line.strip().split(',')])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment