Skip to content

Commit 171ff8d

Browse files
committed
move ahead
1 parent a47b8bf commit 171ff8d

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

newcodes/answers/q46.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/usr/bin/env python
2+
#coding:utf-8
3+
4+
def ahead_one():
5+
a = [i for i in range(1,11)]
6+
b = a.pop(0)
7+
a.append(b)
8+
return a
9+
10+
if __name__ =="__main__":
11+
print(ahead_one())

0 commit comments

Comments
 (0)