so
python
Chatroom
Common Questions
Wiki
Salad Language
Transcripts
Log In
Possible approach:
>>>
a
=
[
1
,
2
,
3
]
>>>
list
(
zip
(
a
,
a
[
1
:]
+
a
))
[(
1
,
2
),
(
2
,
3
),
(
3
,
1
)]