Re: [Tutor] Using a Blackjack Chart...

2012-05-23 Thread Steven D'Aprano
Ken G. wrote: I would like to create a Python program in the manner of an using flash card format. That is, a question is asked and you can respond according and you will be notify if you are correct or incorrect. Is this supposed to be a graphical flashcard program? Or something you run at t

Re: [Tutor] removing sq. of items.

2012-05-23 Thread Mark Lawrence
On 23/05/2012 12:27, Dave Angel wrote: On 05/23/2012 06:07 AM, Bala subramanian wrote: Hi, I infact want write each of the item in the sliced list to a file. This line is top-posted. Please put your remarks *after* the part I agree entirely but top posting is getting worse and worse on all

Re: [Tutor] Query with SOAP request generation, which other modules can be used.

2012-05-23 Thread Mark Lawrence
On 23/05/2012 08:17, Ataulla S H wrote: We can try suds its very lightweight soap client. Thanks Ataulla SH On Wed, May 23, 2012 at 9:43 AM, ankur ~ अंकुर wrote: Dear Pythoneers, We want to butile the SOAP request request in below manner. - In header we want to pass the wsse auth part and

Re: [Tutor] sqlite3 question

2012-05-23 Thread Alan Gauld
On 23/05/12 17:11, Khalid Al-Ghamdi wrote: I'm using Python 3 and have read that you need sqlite to be installed to use the sqlite3 module, but when it is imported it seems to work ok. The info is wrong. Unlike other SQL databases SQLite is not a server based system so there is nothing to ins

Re: [Tutor] Using a Blackjack Chart...

2012-05-23 Thread Alan Gauld
On 23/05/12 15:39, Ken G. wrote: Thank you. I am looking into SQLite3. It has a steep learning curve for me. I'm still playing with it. I assume that means you are new to SQL databases in general? (Since SqLite is probably the easiest SQL database to use!) If so then learning SQL is quite a b

Re: [Tutor] sqlite3 question

2012-05-23 Thread Ken G.
On 05/23/2012 12:51 PM, Joel Goldstick wrote: On Wed, May 23, 2012 at 12:11 PM, Khalid Al-Ghamdi wrote: hi all, I'm using Python 3 and have read that you need sqlite to be installed to use the sqlite3 module, but when it is imported it seems to work ok. so, do you need to install it? also, w

Re: [Tutor] sqlite3 question

2012-05-23 Thread Joel Goldstick
On Wed, May 23, 2012 at 12:11 PM, Khalid Al-Ghamdi wrote: > hi all, > > I'm using Python 3 and have read that you need sqlite to be installed to use > the sqlite3 module, but when it is imported it seems to work ok. so, do you > need to install it? also, when you create the database where is it sa

[Tutor] sqlite3 question

2012-05-23 Thread Khalid Al-Ghamdi
hi all, I'm using Python 3 and have read that you need sqlite to be installed to use the sqlite3 module, but when it is imported it seems to work ok. so, do you need to install it? also, when you create the database where is it saved? thanks ___ Tutor

Re: [Tutor] Using a Blackjack Chart...

2012-05-23 Thread Ken G.
On 05/23/2012 09:56 AM, Prasad, Ramit wrote: How can I best utilize such a chart in the Python program? Lists, Tuples, Dictionary or perhaps, a database format such as SQL? I tried using MySQLdb but was unable to use it since I am using Ubuntu 10.04.4 (Linux) as my main OS. My other OS is

Re: [Tutor] Using a Blackjack Chart...

2012-05-23 Thread Prasad, Ramit
[snip] > > How can I best utilize such a chart in the Python program? Lists, > Tuples, > > Dictionary > > or perhaps, a database format such as SQL? I tried using MySQLdb but > was > > unable > > to use it since I am using Ubuntu 10.04.4 (Linux) as my main OS. My > other > > OS is > > Windows XP

Re: [Tutor] removing sq. of items.

2012-05-23 Thread Walter Prins
On 23 May 2012 11:07, Bala subramanian wrote: > Hi, > I infact want write each of the item in the sliced list to a file. You don't have any actual files in your program so I'm assuming by file you mean "each item is printed to standard output"? Anyway, you might try the following which is I thin

Re: [Tutor] removing sq. of items.

2012-05-23 Thread Dave Angel
On 05/23/2012 06:07 AM, Bala subramanian wrote: > Hi, > I infact want write each of the item in the sliced list to a file. This line is top-posted. Please put your remarks *after* the part you've quoted. There isn't one slice, but many of them. So you have a list of lists. > > On Wed, May 23, 20

Re: [Tutor] removing sq. of items.

2012-05-23 Thread Bala subramanian
Hi, I infact want write each of the item in the sliced list to a file. On Wed, May 23, 2012 at 11:59 AM, Sarma Tangirala wrote: > > > On 23 May 2012 15:21, Bala subramanian wrote: > >> Friends, >> While iterating through each list item and printing/writing it, why does >> the sq. brackets get p

Re: [Tutor] removing sq. of items.

2012-05-23 Thread Sarma Tangirala
On 23 May 2012 15:21, Bala subramanian wrote: > Friends, > While iterating through each list item and printing/writing it, why does > the sq. brackets get printed/written to the file. Just a small eg.code is > given below. > > >>>N=100 > >>> myl=range(1,100+1) > >>> new=[myl[i:i+15] for i in rang

[Tutor] removing sq. of items.

2012-05-23 Thread Bala subramanian
Friends, While iterating through each list item and printing/writing it, why does the sq. brackets get printed/written to the file. Just a small eg.code is given below. >>>N=100 >>> myl=range(1,100+1) >>> new=[myl[i:i+15] for i in range(0, len(myl),15)] >>> for x in new: print x Thanks, Bala

Re: [Tutor] Optimally configuring Emacs for W7-64bit and Python

2012-05-23 Thread Alan Gauld
On 23/05/12 03:13, boB Stepp wrote: to Emacs, that provided things like code completion, etc. It was not clear to me if these would work with Windows Yes, emavs is prettty much built on its own environment based on eLisp. So mostfeatures of emacs work regardless of OS etc. Its only where emac