Re: [Tutor] func-question_y_n.py

2013-03-17 Thread Christopher Emery
Hello Alan, Thank you for your response! Could you point me to a really good and easy to under about string formatting? I am what I would say in programming a baby still on milk. (smile) Sincerely in Christ, Christopher > On 17/03/13 02:03, Christopher Emery wrote: > > Looks reasona

Re: [Tutor] func-question_y_n.py

2013-03-16 Thread Christopher Emery
Hello All, OS = Raspbain Wheezy & Ubuntu 12.10 (both updated daily) Python Version = 3.2 & 3.3 Python Understanding = Beginner (very basic - just started) Code does not give any errors. Okay here is my code for func-question_P_N() it has three args to pass though the function "question", "Positi

Re: [Tutor] func-question_y_n.py

2013-03-16 Thread Christopher Emery
to add the .lower() I had seen it used in another person post and figured that would assist me in getting a mixed of typed word of yes/YES/... Thanks again it is appreciated! On Fri, Mar 15, 2013 at 9:06 PM, Alan Gauld wrote: > On 15/03/13 23:37, Christopher Emery wrote: >> >> so I

Re: [Tutor] func-question_y_n.py

2013-03-15 Thread Christopher Emery
Hello Hugo, Mark, Dave, First thank you all greatly, you all have given me food for thought and bytes to chew! I now would like to say please don't take offense at what I say below, however because we are all people and this IS a learning list I would like to give feedback of the last three respo

Re: [Tutor] func-question_y_n.py

2013-03-15 Thread Christopher Emery
Hello Hugo, # Defines the start of a function and its options (question) def question_y_n(question): #1. Ask Question from user, user enters either Yes, No or whatever (anything that is not Yes or No) answer = input(question) # prompts the user and assigns the answer to var answer #2. If the

Re: [Tutor] func-question_y_n.py

2013-03-15 Thread Christopher Emery
Hi Mitya, Thank for your example of code, however at this time its well over my head and I think its best if I slowly work on a function that provided only what I need and then add to it IF it works into it. Yours appears to do a whole lot more then process a Yes/No from a question and re-ask the

[Tutor] func-question_y_n.py

2013-03-15 Thread Christopher Emery
Hello All, Okay, I have created a small function that will check to see if a user has answered with a Yes, No or other response. If the user puts yes or no the function ends, if they put anything but yes or no then the function will ask them the same question and tell them they either need to put

Re: [Tutor] File-Fetcher (cmdline-parser)

2013-03-15 Thread Christopher Emery
hristopher On Fri, Mar 15, 2013 at 4:30 PM, Prasad, Ramit wrote: > Christopher Emery wrote: >> Hello Peter, >> >> Thank you this is much appreciated! It is much clear now. Thank you >> >> PO: Also, if you make it a habit to keep long option and dest in sync >

Re: [Tutor] File-Fetcher (cmdline-parser)

2013-03-15 Thread Christopher Emery
Hello Peter, Thank you this is much appreciated! It is much clear now. Thank you PO: Also, if you make it a habit to keep long option and dest in sync (something you get for free if you only specify the option) you can deduce the attribute name used in the script from its commandline interface.

Re: [Tutor] File-Fetcher (cmdline-parser)

2013-03-15 Thread Christopher Emery
Hello Peter, First let me say thanks for your feedback, please see comments / question below, yours starting with PO and mine starting with CE. PO: dest determines the attribute name under which the option is stored. I rarely set it explicitly; instead I provide a --long-option: CE: Is there a ad

[Tutor] File-Fetcher (cmdline-parser)

2013-03-15 Thread Christopher Emery
Hello All, OS = Raspbain Wheezy & Ubuntu 12.10 (both updated daily) Python Version = 3.2 & 3.3 Python Understanding = Beginner (very basic - just started) See paste bin for code, has 44 lines, code does not give any errors. http://pastebin.com/2tLHvUym Okay, I am writing to ask a few question a

Re: [Tutor] Designing a program (File-Fetcher)

2013-03-15 Thread Christopher Emery
t; On 3/14/2013 5:25 PM, Christopher Emery wrote: >> >> Hello All, >> >> Okay, I know the best way to learn how to do something is to jump in so I >> have decided I would like to make a program (command line) to get files from >> a website that will be then used later o

Re: [Tutor] Designing a program (File-Fetcher)

2013-03-14 Thread Christopher Emery
On Thu, Mar 14, 2013 at 9:02 PM, Alan Gauld wrote: > On 14/03/13 21:25, Christopher Emery wrote: > >> Okay, I know the best way to learn how to do something is to jump in so >> I have decided I would like to make a program (command line) to get >> files from a website that

[Tutor] Designing a program (File-Fetcher)

2013-03-14 Thread Christopher Emery
Hello All, Okay, I know the best way to learn how to do something is to jump in so I have decided I would like to make a program (command line) to get files from a website that will be then used later on by another program. Program idea - quick steps to do *** file-fetcher (within zip file) get

[Tutor] New Programmer - Designing

2013-03-07 Thread Christopher Emery
Hello All, I am new to this email list as can see from subject, my name is Christopher. I am trying to learn how to design a program but I seem not to find any resource online that will teach how to design the program before you start programming. I would like to create a program that will filte