On Wednesday, July 9, 2014 9:14:01 PM UTC+5:30, Mark Lawrence wrote:
> On 09/07/2014 15:27, sssdevelop wrote:
> > Hello,
> > I have working code - but looking for better/improved code. Better coding
> > practices, better algorithm :)
> > Problem: Given sequence of increasing integers, print blocks
On 10/07/2014 15:39, sssdevelop wrote:
Mark - thank you so much. You have suggested be new best tool/module.
It's going to help me many places. Was not aware of such powerful tool.
thank you,
I'm pleased to see that you have several answers. In return would you
please use the mailing list
Mark - thank you so much. You have suggested be new best tool/module.
It's going to help me many places. Was not aware of such powerful tool.
thank you,
On Wednesday, July 9, 2014 9:14:01 PM UTC+5:30, Mark Lawrence wrote:
> On 09/07/2014 15:27, sssdevelop wrote:
>
> > Hello,
>
> >
>
> > I
thank you so much!
On Wednesday, July 9, 2014 11:46:41 PM UTC+5:30, Ian wrote:
> On Wed, Jul 9, 2014 at 8:27 AM, sssdevelop wrote:
>
> > prev = 0
>
> > blocks = []
>
> > tmp = []
>
> > last = 0
>
> > for element in a:
>
> >if prev == 0:
>
>
>
> Is 0 allowed to be in the input list?
Thank you so much Terry Jan Reedy. You have given best advice - yup, i am
beginner in Python.
Your reply has done grooming :)
thx,
On Thursday, July 10, 2014 12:16:48 AM UTC+5:30, Terry Reedy wrote:
> On 7/9/2014 10:27 AM, sssdevelop wrote:
>
> > Hello,
>
> >
>
> > I have working code -
On 7/9/2014 10:27 AM, sssdevelop wrote:
Hello,
I have working code - but looking for better/improved code. Better coding
practices, better algorithm :)
Problem: Given sequence of increasing integers, print blocks of consecutive
integers.
Input: [51, 53, 55, 67, 68, 91, 92, 93, 94, 99]
Outo
On Wed, Jul 9, 2014 at 8:27 AM, sssdevelop wrote:
> prev = 0
> blocks = []
> tmp = []
> last = 0
> for element in a:
>if prev == 0:
Is 0 allowed to be in the input list? What would happen if it were?
> next
This line doesn't do anything. It looks up the builtin function named
next an
On 09/07/2014 15:27, sssdevelop wrote:
Hello,
I have working code - but looking for better/improved code. Better coding
practices, better algorithm :)
Problem: Given sequence of increasing integers, print blocks of consecutive
integers.
Example:
Input: [10, 11, 12, 15]
Output: [10, 11, 12]
Hello,
I have working code - but looking for better/improved code. Better coding
practices, better algorithm :)
Problem: Given sequence of increasing integers, print blocks of consecutive
integers.
Example:
Input: [10, 11, 12, 15]
Output: [10, 11, 12]
Input: [51, 53, 55, 67, 68, 91, 92, 9