Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

name_ucp.py

ihor_ks Nov 19th, 2018 63 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. #!/usr/bin/python3
  2.  
  3. """
  4. This program converts a username into unicode code points.
  5. For example: Тарас → '422430440430441'
  6. """
  7.  
  8. name_string = input("Hello, what is your name?\n > ")
  9.  
  10. name_ucp = ""
  11.  
  12. for letter in name_string:
  13.     name_ucp += "{:04x}".format(ord(letter))[1:]
  14.  
  15. print(f"Your name in unicode code points: {name_ucp}\n")
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top