Jan-28-2018, 05:18 AM
i can sequence single character indexes like
Output:>>> a='abcdefghijklmnopqrstuvwxyz'
>>> [a[x] for x in range(-6,6)]
['u', 'v', 'w', 'x', 'y', 'z', 'a', 'b', 'c', 'd', 'e', 'f']
>>> a[-6:6]
''
>>>
but a slice doesn't work anywhere near that way. so, i have to doOutput:>>> ''.join(a[x] for x in range(-6,6))
'uvwxyzabcdef'
>>>
is there a more direct way using a slice to get this?