Test string slicing + neg.

This commit is contained in:
Captain ALM 2022-11-30 17:10:44 +00:00
parent d9f24706ac
commit 71c0fe0fad
Signed by: alfred
GPG Key ID: 4E4ADD02609997B1

View File

@ -4,3 +4,7 @@ a = "hello world"
print(a[2:8]) print(a[2:8])
print(a[:8]) print(a[:8])
print(a[2:]) print(a[2:])
#From the end
print(a[-8:-2])
print(a[-8:])
print(a[:-2])