On 12/16/2013 12:43 PM, Mark Lawrence wrote:
On 16/12/2013 17:16, Ravi Prabakaran wrote:
Hi,
I'm completely new to python. I just need simple logic to get output
without any loops.
I have list of string
The remainder of your description and example imply that this must be a
sequence of exactl
In <2333bfb4-cd72-4ed0-9b28-d8dbe26b5...@googlegroups.com> Ravi Prabakaran
writes:
> Hi,
> I'm completely new to python. I just need simple logic to get output without
> any loops.
> I have list of string and list of list of numbers.
> Each string should be concatenated with every third and fou
Jussi Piitulainen wrote:
> Ravi Prabakaran writes:
>
>> I'm completely new to python. I just need simple logic to get output
>> without any loops.
>> I have list of string and list of list of numbers.
>> Each string should be concatenated with every third and fourth
>> values to generate proper t
Ravi Prabakaran writes:
> I'm completely new to python. I just need simple logic to get output
> without any loops.
> I have list of string and list of list of numbers.
> Each string should be concatenated with every third and fourth
> values to generate proper titles in list of strings.
>
> t =
On Tue, Dec 17, 2013 at 4:51 AM, Chris Angelico wrote:
> t = ['Start','End']
> a = [[1,2,3,4],
> [5,6,7,8]]
> result = []
> for cur in a:
> result.append("%s - %d"%(t[0],cur[2]))
> result.append("%s - %d"%(t[1],cur[3]))
Whoops, I misread the desired output, I thought you wanted a
f
On Tue, Dec 17, 2013 at 4:41 AM, Ravi Prabakaran wrote:
>> Hi Chris,
>
> Thanks for reply. If you have any good idea with loop, please post. But
> i'm looking same without loop because python has slicing,concatenating and
> other straight forward feature. I guess it can be done without loop. M
On 16/12/2013 17:16, Ravi Prabakaran wrote:
Hi,
I'm completely new to python. I just need simple logic to get output without
any loops.
I have list of string and list of list of numbers.
Each string should be concatenated with every third and fourth values to
generate proper titles in list of s
On Tue, Dec 17, 2013 at 4:16 AM, Ravi Prabakaran wrote:
> Could anyone please guide me with best solution without loops ?
>
Why "without loops"? The best solution, in my opinion, is a loop. Is
this a specific challenge (homework)? I could make you a list
comprehension, but that's really just anot