Re: [Tutor] Ideas for Child's Project

2015-01-06 Thread Danny Yoo
On Tue, Jan 6, 2015 at 1:46 PM, Stephen Nelson-Smith wrote: > Hello, > > My son is interested in programming, and has dabbled in Scratch and done a > tiny bit of Python at school. He's 11 and is going for an entrance exam > for a selective school in a couple of weeks. They've asked him to bring

Re: [Tutor] Ideas for Child's Project

2015-01-06 Thread David Heiser
Twelve years ago, I started with "The Quick Python Book". Harms and McDonald. Manning Pub. I learned a lot in a hurry. I still use it for reference once in a while to refresh my memory. On 1/6/2015 1:46 PM, Stephen Nelson-Smith wrote: Hello, My son is interested in programming, and has da

[Tutor] Ideas for Child's Project

2015-01-06 Thread Stephen Nelson-Smith
Hello, My son is interested in programming, and has dabbled in Scratch and done a tiny bit of Python at school. He's 11 and is going for an entrance exam for a selective school in a couple of weeks. They've asked him to bring along something to demonstrate an interest, and present it to them. I

Re: [Tutor] regex advice

2015-01-06 Thread Cameron Simpson
On 06Jan2015 11:43, Norman Khine wrote: i have the following code: [...] #t(" ") gettext_re = re.compile(r"""[t]\((.*)\)""").findall My first thought is: "[t]" can just be written "t" [...] so, gettext_re = re.compile(r"""[t]\((.*)\)""").findall is not correct as it includes results such

Re: [Tutor] regex advice

2015-01-06 Thread Peter Otten
Norman Khine wrote: > i have a blade template file, as > > replace page > .row > .large-8.columns > form( method="POST", action="/product/saveall/#{style._id}" ) > input( type="hidden" name="_csrf" value=csrf_token ) > h3 #{t("Generate Product for")} #{tt(style.name)}

Re: [Tutor] regex advice

2015-01-06 Thread Steven D'Aprano
On Tue, Jan 06, 2015 at 11:43:01AM +, Norman Khine wrote: > hello, > i have the following code: > > import os > import sys > import re > > walk_dir = ["app", "email", "views"] > #t(" ") > gettext_re = re.compile(r"""[t]\((.*)\)""").findall > > for x in walk_dir: [...] The first step in effe

[Tutor] regex advice

2015-01-06 Thread Norman Khine
hello, i have the following code: import os import sys import re walk_dir = ["app", "email", "views"] #t(" ") gettext_re = re.compile(r"""[t]\((.*)\)""").findall for x in walk_dir: curr_dir = "../node-blade-boiler-template/" + x for root, dirs, files in os.walk(curr_dir, topdown=False):

Re: [Tutor] How to get value of sublist as return to verify in other file

2015-01-06 Thread shweta kaushik
Hi all, Thanks for the help. I am able to resolve the issue. I need to return all values in one file and in other file I need to reading the response as response[0] , response[1] and so on.. Shweta On Jan 6, 2015 8:32 AM, "shweta kaushik" wrote: > Hii Alan, > > Thank you.. > > I want to put th

Re: [Tutor] How to get value of sublist as return to verify in other file

2015-01-06 Thread shweta kaushik
Hii Alan, Thank you.. I want to put the value of sublist[3] into another file (test case) for verification purpose. Shweta On Jan 6, 2015 6:09 AM, "Alan Gauld" wrote: > On 05/01/15 17:38, shweta kaushik wrote: > > list = [[1,2,3,4,5],[2,3,4,4,6],[3,4,5,4,6],[1,4,5,4,8]] > for sublist in l