New paste Repaste Download
% python
Python 3.13.2 experimental free-threading build (main, Feb 24 2025, 23:11:48) [GCC 14.2.1 20250207] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> interesting_sample = b'>\xd8\xa7\xd8\xb3\xda\xa9\xd9\x86\xd8\xaf\xd8\xb1<'
>>> text = interesting_sample.decode('utf-8')
>>> text
'>اسکندر<'
>>> ' '.join(text)
'> ا س ک ن د ر <'
>>> list(text)
['>', 'ا', 'س', 'ک', 'ن', 'د', 'ر', '<']
>>> list(enumerate(text))
[(0, '>'), (1, 'ا'), (2, 'س'), (3, 'ک'), (4, 'ن'), (5, 'د'), (6, 'ر'), (7, '<')]
Filename: None. Size: 547b. View raw, , hex, or download this file.

This paste expires on 2025-07-21 04:42:30.924225. Pasted through web.