shengjie.sheng...@live.com wrote:
The idea is to grab the last 4 elements of the array. However i have an
array that contains a few hundred elements in it. And the values continues
to .append over time. How would i be able to display the last 4 elements
of the array under such a condition?
On 16/12/2013 05:10, shengjie.sheng...@live.com wrote:
On Monday, 16 December 2013 13:07:46 UTC+8, shengjie...@live.com wrote:
Would you please read and action this
https://wiki.python.org/moin/GoogleGroupsPython to prevent us seeing
double line spacing, thanks.
--
My fellow Pythonistas,
On Mon, 16 Dec 2013 15:59:32 +1100, Ben Finney wrote:
shengjie.sheng...@live.com writes:
Hi guys, I am trying to create a fixed list which would allow my values
to be wrapped around it.
This doesn't make a lot of sense to me, but I assume you have a purpose
in mind for this. What is the
On Mon, Dec 16, 2013 at 12:26 AM, shengjie.sheng...@live.com wrote:
The idea is to grab the last 4 elements of the array. However i have an array
that contains a few hundred elements in it. And the values continues to
.append over time. How would i be able to display the last 4 elements of
On Sun, 15 Dec 2013 21:26:49 -0800 (PST), shengjie.sheng...@live.com
wrote:
The idea is to grab the last 4 elements of the array. However i
have an array that contains a few hundred elements in it. And the
values continues to .append over time. How would i be able to display
the last 4
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]
shengjie.sheng...@live.com writes:
Hi guys, I am trying to create a fixed list which would allow my
values to be wrapped around it.
This doesn't make a lot of sense to me, but I assume you have a purpose
in mind for this. What is the purpose? Perhaps it will help the
explanation if we know
On Monday, 16 December 2013 12:59:32 UTC+8, Ben Finney wrote:
shengjie.sheng...@live.com writes:
Hi guys, I am trying to create a fixed list which would allow my
values to be wrapped around it.
This doesn't make a lot of sense to me, but I assume you have a purpose
in mind
On Monday, 16 December 2013 13:07:46 UTC+8, shengjie...@live.com wrote:
On Monday, 16 December 2013 12:59:32 UTC+8, Ben Finney wrote:
shengjie.sheng...@live.com writes:
Hi guys, I am trying to create a fixed list which would allow my
values to be wrapped around
On 12/15/2013 08:38 PM, shengjie.sheng...@live.com 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,
On Monday, 16 December 2013 13:10:22 UTC+8, Gary Herron wrote:
On 12/15/2013 08:38 PM, shengjie.sheng...@live.com 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
On Monday, 16 December 2013 12:38:14 UTC+8, shengjie...@live.com 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
El 27/11/13 07:46, amjad...@gmail.com escribió:
Hello,
I am working on a problem (Bioinformatics domain) where all possible
combinations of input string needs to be printed as sublist
For example:
Input string : LEQN
Output= [L,E,Q,N][LE,EQ,QN,NL] [LEQ,EQN,QNE,NLE]
[LEQN]
The code i have
Hello,
I am working on a problem (Bioinformatics domain) where all possible
combinations of input string needs to be printed as sublist
For example:
Input string : LEQN
Output= [L,E,Q,N][LE,EQ,QN,NL] [LEQ,EQN,QNE,NLE]
[LEQN]
The code i have written for this is as follows:
from itertools import
On Wed, Nov 27, 2013 at 9:46 PM, amjad...@gmail.com wrote:
So the question i am asking , how can i add wrapping around sublist in my
sliding window function.
By the look of what you now have, the easiest way would probably be to
duplicate the list before you slide. So instead of working on
On Wednesday, November 27, 2013 1:53:54 PM UTC+3, Chris Angelico wrote:
On Wed, Nov 27, 2013 at 9:46 PM, amjad...@gmail.com wrote:
So the question i am asking , how can i add wrapping around sublist in my
sliding window function.
By the look of what you now have, the easiest way
On Wed, Nov 27, 2013 at 10:07 PM, Amjad Syed amjad...@gmail.com wrote:
Thanks Chris for the reply. But i would like sliding function to be scalable,
as input string can be of 100 letters.
A hundred isn't much to work with, and your code will be fairly
simple. Give it a try with small strings,
On 11/27/13 6:14 AM, Chris Angelico wrote:
On Wed, Nov 27, 2013 at 10:07 PM, Amjad Syed amjad...@gmail.com wrote:
Thanks Chris for the reply. But i would like sliding function to be scalable,
as input string can be of 100 letters.
A hundred isn't much to work with, and your code will be
On Wed, Nov 27, 2013 at 5:46 AM, amjad...@gmail.com wrote:
I am working on a problem (Bioinformatics domain) where all
possible combinations of input string needs to be printed as
sublist
For example:
Input string : LEQN
Output= [L,E,Q,N]
[LE,EQ,QN,NL][LEQ,EQN,QNE,NLE][LEQN]
How about
On Wednesday, November 27, 2013 4:16:50 PM UTC+5:30, Amjad Syed wrote:
Hello,
I am working on a problem (Bioinformatics domain) where all possible
combinations of input string needs to be printed as sublist
If we take the standard combinations (Pascal triangle) result
nCr + nCr-1 = n+1Cr
On Wed, 27 Nov 2013 08:33:43 -0500, Neil Cerutti mr.ceru...@gmail.com wrote:
On Wed, Nov 27, 2013 at 5:46 AM, amjad...@gmail.com wrote:
I am working on a problem (Bioinformatics domain) where all
possible combinations of input string needs to be printed as
sublist
For example:
Input string
On Wednesday, November 27, 2013 2:14:18 PM UTC+3, Chris Angelico wrote:
On Wed, Nov 27, 2013 at 10:07 PM, Amjad Syed amjad...@gmail.com wrote:
Thanks Chris for the reply. But i would like sliding function to be
scalable, as input string can be of 100 letters.
A hundred isn't much to
22 matches
Mail list logo