❮ type
❯
Look deeper in a list
examples/lists/string_deeper.py
x = ['abcd', 'efgh'] print(x) # ['abcd', 'efgh'] print(x[0:1]) # ['abcd'] print(x[0]) # 'abcd' print(x[0][0]) # a print(x[0][1]) # b print(x[0][0:2]) # ab
x = ['abcd', 'efgh'] print(x) # ['abcd', 'efgh'] print(x[0:1]) # ['abcd'] print(x[0]) # 'abcd' print(x[0][0]) # a print(x[0][1]) # b print(x[0][0:2]) # ab