15 lines
169 B
Python
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) |