Re: [Tutor] Query String

2013-02-19 Thread Alan Gauld
On 19/02/13 07:30, Sunil Tech wrote: Here i request, can you tell me what is Query String with some examples? It depends on the context but I suspect you mean in the context of a web app? In that case a query string is the bit at the end of a URL that includes the search parameters etc. Thus

Re: [Tutor] Query String

2013-02-19 Thread Sunil Tech
Thank you Alan. On Tue, Feb 19, 2013 at 2:44 PM, Alan Gauld wrote: > On 19/02/13 07:30, Sunil Tech wrote: > >> >> Here i request, can you tell me what is Query String with some examples? >> > > It depends on the context but I suspect you mean in the context of a web > app? In that case a quer

Re: [Tutor] Query String

2013-02-19 Thread eryksun
On Tue, Feb 19, 2013 at 4:14 AM, Alan Gauld wrote: > > https://www.google.co.uk/#hl=en Just to clarify, using a fragment (#) like that isn't a standard query. It's a JavaScript trick for manipulating browser history based on location.hash, so one can do AJAX page refreshes without breaking the ba

Re: [Tutor] following on

2013-02-19 Thread Shall, Sydney
On 19/02/2013 02:15, Steven D'Aprano wrote:hon modules. Many people will advise that learning C is a good idea. I understand their arguments, but as an old curmudgeon I can say I don't like C and I think the world would be much better without it :-) Does this comment extend to C++? :-) C

[Tutor] help with storing money variable

2013-02-19 Thread Ghadir Ghasemi
Hi guys, Iam halfway through my vending machine program that I started earlier. I ran into a problem. When the user inserts some money, The money variable is not stored for until the user buys an item. So what happens is when the users inserts some coins and then trys to buy an item the money th

Re: [Tutor] help with storing money variable

2013-02-19 Thread Dave Angel
On 02/19/2013 07:36 AM, Ghadir Ghasemi wrote: Hi guys, Iam halfway through my vending machine program that I started earlier. I ran into a problem. When the user inserts some money, The money variable is not stored for until the user buys an item. So what happens is when the users inserts some

Re: [Tutor] following on

2013-02-19 Thread Robert Sjoblom
> Could the experts, please, recommend a beginner's book to learn the > principles of good programming? I don't know about expert, but I found the Head First Lab's approach to be really good. The Python book is structured like so: -Lists introduction -(PyPi)/creating modules -- this I hope has bee

Re: [Tutor] Query String

2013-02-19 Thread Alan Gauld
On 19/02/13 11:35, eryksun wrote: On Tue, Feb 19, 2013 at 4:14 AM, Alan Gauld wrote: https://www.google.co.uk/#hl=en Just to clarify, using a fragment (#) like that isn't a standard query. Yes I noticed the anomaly but I chose that particular query for a reason :-) -- Alan G Author of th

Re: [Tutor] help with storing money variable

2013-02-19 Thread Alan Gauld
On 19/02/13 12:36, Ghadir Ghasemi wrote: def printMenu(): print ("|__|") print ("| 2. Insert 10p |") print ("| 3. Insert 20p |") print ("| 4. Insert 50p |") print ("|__|") while True:

Re: [Tutor] following on

2013-02-19 Thread Alan Gauld
On 19/02/13 11:27, Shall, Sydney wrote: Could the experts, please, recommend a beginner's book to learn the principles of good programming? Thats exactly what my book tries to do although it focuses on Python. But its really more about the general principles than learning the idioms of the l

Re: [Tutor] following on

2013-02-19 Thread Danny Yoo
> Does this comment extend to C++? :-) > > Could the experts, please, recommend a beginner's book to learn the > principles of good programming? I'm partial to How to Design Programs as a beginner's textbook: http://www.ccs.neu.edu/home/matthias/HtDP2e/ because it emphasizes a systematic ap