Re: [Tutor] Class-based generator

2013-02-18 Thread Oscar Benjamin
On 18 February 2013 07:36, Michael O'Leary mich...@seomoz.org wrote: I wrote some code to create tasks to be run in a queue based system last week. It consisted of a big monolithic function that consisted of two parts: 1) read data from a file and create dictionaries and lists to iterate

Re: [Tutor] Class-based generator

2013-02-18 Thread Peter Otten
Michael O'Leary wrote: I wrote some code to create tasks to be run in a queue based system last week. It consisted of a big monolithic function that consisted of two parts: 1) read data from a file and create dictionaries and lists to iterate through 2) iterate through the lists creating a

Re: [Tutor] following on

2013-02-18 Thread Alan Gauld
On 18/02/13 17:30, Matthew Ngaha wrote: i can attempt to use these libraries/frameworks/modules provided but how can i build or get better at creating/building my own tools? practice. Just build a lot of stuff. Its the only way. and i did that! or hey i built my own engine, my own

[Tutor] if/else option for making a choice

2013-02-18 Thread Niclas Rautenhaus
Hello folks, I would be very pleased if someone is able to help me. I wrote a small programm, to calculate the grand total for a car. A basic price can be entered. Given that basic price, a tax peercentage is calculated and added tot he grand total. But unfortunately I am stuck with giving

Re: [Tutor] following on

2013-02-18 Thread Matthew Ngaha
understanding of how everything works. Use it., Experiment with it. Break it. Thats the best way. Read the source code its all available in Python or C. Hey can you please tell me which source code youre referring too? The initial files that come with Python? also the C code, where can i

Re: [Tutor] following on

2013-02-18 Thread Steve Willoughby
On Mon, Feb 18, 2013 at 07:01:02PM +, Matthew Ngaha wrote: understanding of how everything works. Use it., Experiment with it. Break it. Thats the best way. Read the source code its all available in Python or C. Hey can you please tell me which source code youre referring too?

Re: [Tutor] if/else option for making a choice

2013-02-18 Thread Steve Willoughby
On Mon, Feb 18, 2013 at 07:22:54PM +0100, Niclas Rautenhaus wrote: Hello folks, I hope it is clear where my problem is. Not completely, but let's take a look at what you have so far. # Set variables for additional items Leather = (500) int (Leather) Clima = (1500) int (Clima) ... You

Re: [Tutor] following on

2013-02-18 Thread Alan Gauld
On 18/02/13 19:01, Matthew Ngaha wrote: initial files that come with Python? also the C code, where can i locate this? Look in the python.org download page and you will find a link to the source for that release. For 3.3 it's here: http://www.python.org/download/releases/3.3.0/ Look at

Re: [Tutor] if/else option for making a choice

2013-02-18 Thread Alan Gauld
On 18/02/13 18:22, Niclas Rautenhaus wrote: But unfortunately I am stuck with giving the user the choice to select an additional option! The extra items have got set values, but at the moment they all get summarized, but i want to choose. AFAIK I already tried: Print raw_input ((“Would you

[Tutor] Fw: if/else option for making a choice

2013-02-18 Thread ALAN GAULD
forwarding to the group. please use reply all to respond to list messages.   Alan Gauld Author of the Learn To Program website http://www.alan-g.me.uk/ - Forwarded Message - From: Niclas Rautenhaus n.rautenh...@gmx.de To: 'Alan Gauld' alan.ga...@btinternet.com Sent: Monday, 18 February

Re: [Tutor] if/else option for making a choice

2013-02-18 Thread wesley chun
On Mon, Feb 18, 2013 at 10:22 AM, Niclas Rautenhaus n.rautenh...@gmx.dewrote: Hello folks, ** ** I would be very pleased if someone is able to help me. I wrote a small programm, to calculate the grand total for a car. A basic price can be entered. Given that basic price, a

Re: [Tutor] if/else option for making a choice

2013-02-18 Thread akleider
On Mon, Feb 18, 2013 at 10:22 AM, Niclas Rautenhaus n.rautenh...@gmx.dewrote: Hello folks, ** ** I would be very pleased if someone is able to help me. I wrote a small programm, to calculate the grand total for a car. A basic price can be entered. Given that basic price, a

Re: [Tutor] if/else option for making a choice

2013-02-18 Thread wesley chun
in your situation, i think it would be more Pythonic to maintain the extras as a vector of options and prices. you then loop through those, prompting the user to enter Yes or No, and add either the cost or zero, respectively. that will help keep your code less complex as well. you would

Re: [Tutor] following on

2013-02-18 Thread Dave Angel
On 02/18/2013 02:01 PM, Matthew Ngaha wrote: snip i sort of heard about a stack its a C/C++ thing i think? A stack is fundamental to modern programming languages. The only two machines I've used that didn't have a stack implemented at the machine level were the CDC 6000 series, and

Re: [Tutor] following on

2013-02-18 Thread Robert Sjoblom
i sort of heard about a stack its a C/C++ thing i think? A stack is fundamental to modern programming languages. The only two machines I've used that didn't have a stack implemented at the machine level were the CDC 6000 series, and the IBM 360. Both products of the 60's. A while back,

Re: [Tutor] following on

2013-02-18 Thread Steven D'Aprano
On 19/02/13 06:01, Matthew Ngaha wrote: understanding of how everything works. Use it., Experiment with it. Break it. Thats the best way. Read the source code its all available in Python or C. Hey can you please tell me which source code youre referring too? The initial files that come with

Re: [Tutor] following on

2013-02-18 Thread Matthew Ngaha
Hey, a Big thanks to everyone that has offered their input. I really appreciate it. Also thanks for all the additional links, i will definately start to read up on data structures , source code and everything else that was suggested ___ Tutor maillist -

[Tutor] Query String

2013-02-18 Thread Sunil Tech
Hi All, I thank you all, for all the responses. teaching us to learn Python. Here i request, can you tell me what is Query String with some examples? ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: