On Monday, 16 December 2013 12:38:14 UTC+8, [email protected] wrote: > Hi guys, I am trying to create a fixed list which would allow my values to be > wrapped around it. > > For example i have 10 values : 0,1,2,3,4,5,6,7,8,9 > > I need to create a list which contains 4 numbers and when the number exceeds > the list, it would overwrite the first value. > > [0,1,2,3] > > [4,1,2,3] > > [5,4,1,2] > > > > Thanks in advance and much help appreciated. -- https://mail.python.org/mailman/listinfo/python-list
- Wrapping around a list in Python. shengjie . shengjie
- Re: Wrapping around a list in Python. Ben Finney
- Re: Wrapping around a list in Python. shengjie . shengjie
- Re: Wrapping around a list in Python. shengjie . shengjie
- Re: Wrapping around a list in Python. Mark Lawrence
- Re: Wrapping around a list in Python. Gary Herron
- Re: Wrapping around a list in Python. shengjie . shengjie
- Re: Wrapping around a list in Python. Peter Otten
- Re: Wrapping around a list in Python. David Robinow
- Re: Wrapping around a list in Python. Dave Angel
- Re: Wrapping around a list in Python. shengjie . shengjie
- Re: Wrapping around a list in Python. Denis McMahon
