summaryrefslogtreecommitdiffstatshomepage
path: root/tests/unicode/unicode_slice.py
blob: d9237088f809788fb0b031a04b526f1db44ab7bb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
# Test slicing of Unicode strings

s = "Привет"

print(s[:])
print(s[2:])
print(s[:5])
print(s[2:5])
print(s[2:5:1])
print(s[2:10])
print(s[-3:10])
print(s[-4:10])