Comparing values of counter in python 3.3

2013-12-11 Thread Amjad Syed
Hello, I have 2 counters generated from list using Collections.counter() I want to print only key,values in Counter2 which have values > then corresponding value in Counter1. E.g Counter1={97:1,99:2,196:2,198:1} Counter2={97:1 ,99:3, 196:1,198:1} # Output [99,3] # Need to compare values of co

Re: Wrapping around a list

2013-11-27 Thread Amjad Syed
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 wrote: > > > Thanks Chris for the reply. But i would like sliding function to be > > scalable, as input string can be of 100 letters. > > > >

Re: Wrapping around a list

2013-11-27 Thread Amjad Syed
On Wednesday, November 27, 2013 1:53:54 PM UTC+3, Chris Angelico wrote: > On Wed, Nov 27, 2013 at 9:46 PM, 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 proba