Skip to content

Instantly share code, notes, and snippets.

@filipgorczynski
Created April 20, 2018 05:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save filipgorczynski/65757e7f1c8402f5b8006d16c3cbeb21 to your computer and use it in GitHub Desktop.
Save filipgorczynski/65757e7f1c8402f5b8006d16c3cbeb21 to your computer and use it in GitHub Desktop.
>>> test = u'ë́aúlt' # znaki można policzyć na palcach jednej ręki (dla regionów oddalonych od Czarnobyla)
>>> len(test)
6
>>> # Hmm, chyba jednak jesteśmy blisko uszkodzonego reaktora...
>>> for c in test:
... print("{} - {}".format(c, len(c)))
...
ë - 1
- 1
a - 1
ú - 1
l - 1
t - 1
>>> # i wszystko "jasne"...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment