s = ( "abcde", "bcdef", "cdefg",) for head, *_, tail in s: print(head, _, tail)
Standard input is empty
a ['b', 'c', 'd'] e b ['c', 'd', 'e'] f c ['d', 'e', 'f'] g
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!