Skip to content

Instantly share code, notes, and snippets.

@fahadsadah
Last active August 29, 2017 18:33
Show Gist options
  • Save fahadsadah/5d57dc545cd23895eff7b0a8f6dd6ab8 to your computer and use it in GitHub Desktop.
Save fahadsadah/5d57dc545cd23895eff7b0a8f6dd6ab8 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python3
import fileinput
chars = set()
for line in fileinput.input():
chars.update(line)
for char in chars:
print(hex(ord(char)).replace('0x','U+'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment