python_math_stat/practica/stepik/beneficial_features/index.py
2023-10-04 17:12:15 +03:00

15 lines
169 B
Python

s = 'abcdefghijk'
m = s[3:6]
print (m)
m = s[:6]
print (m)
m = s[3:]
print (m)
m = s[::-1]
print (m)
m = s[-3:]
print (m)
m = s[:-6]
print (m)
m = s[-1:-10:-2]
print (m)