DX World DXPediton Timeline

cluster

Sunday, September 25, 2022

Python

s = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
l = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
print(s)
print(s[0:-1])
print(s[-2:-1])
print(s[0])

print(l)
print(l[0:-1])
print(l[-2:-1])
print(l[0])

ABCDEFGHIJKLMNOPQRSTUVWXYZ
ABCDEFGHIJKLMNOPQRSTUVWXY
Y
A
[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
[1, 2, 3, 4, 5, 6, 7, 8, 9]
[9]
1