On 17/03/13 17:40, Christopher Emery wrote:
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)
You'll find an introduction to old style formatting in my
tutorial topic "Simple Sequences".
In that
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 reasonable to me.
On 17/03/13 02:03, Christopher Emery wrote:
### Start of Code ###
def question_P_N(question, p, n):
p = p.upper()
n = n.upper()
answer = input(question).upper()
while answer not in (p, n):
print("Your response was", answer + "!", "Please enter", p,
"or", n, "for your
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
Hello Alan and Mark,
Thank you, I didn't realize that it was not needed, I had seen some
other code on the net that showed it with, however its like the if or
for statement they don't need () thank you. Thanks Alan for your tip,
once I had my code working in the best way I was going to add the
.l
On 15/03/13 23:37, Christopher Emery wrote:
so I may understand the why to your statement "
> WHy the unneeded parenthesis?
Mark was pointing out that parentheses are not needed in a while
statement. So why add them? They just add visual clutter.
What about 'yes'?"
And here he was alludi
On 15/03/2013 23:37, Christopher Emery wrote:
Hello Hugo, Mark, Dave,
For Mark: Thank you for your answer at the end of your email. If you
don't mind me stating for future can you explain things a little more
so I may understand the why to your statement "WHy the unneeded
parenthesis? What ab
On 03/15/2013 05:47 PM, Christopher Emery wrote:
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 l
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
On Fri, Mar 15, 2013 at 10:09 PM, Christopher Emery wrote:
>
> This code works and produces the results that I am looking for,
> however I know there is a better way to do it and now you have me
> thinking about this again. I just spent about 3 hours doing this
> code.
Yes! learning is happenin
On 15/03/2013 22:09, Christopher Emery wrote:
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
On 03/15/2013 06:09 PM, Christopher Emery wrote:
-- Hugo said:
1. ask a question, receive an answer
2. if the answer is "Yes" or "No", return the answer
3. else, print a message and go back to step 1
Hello Hugo,
# Defines the start of a function and its options (question)
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
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
On 03/15/2013 05:01 PM, Christopher Emery wrote:
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
On Fri, Mar 15, 2013 at 9:01 PM, Christopher Emery wrote:
> 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
16 matches
Mail list logo