Re: [Tutor] How do I call a variable within an input () function?

2015-02-06 Thread Mark Lawrence
On 06/02/2015 07:20, Danny Yoo wrote: On Thu, Feb 5, 2015 at 3:57 PM, Edgar Figueroa wrote: Hello group. I'm trying to call the variable "name" within my input () function. Here's what I have: name = input("Hello. What's your name? ") print("\nHello", name, ". Nice to meet you.") favFood1 = i

Re: [Tutor] How do I call a variable within an input () function?

2015-02-06 Thread Steven D'Aprano
On Thu, Feb 05, 2015 at 05:57:06PM -0600, Edgar Figueroa wrote: > Hello group. I'm trying to call the variable "name" within my input () > function. > Here's what I have: > name = input("Hello. What's your name? ") *Your* input function? Is that different from the standard input function? Are

Re: [Tutor] Nested for loops, possibly?

2015-02-06 Thread Bob Williams
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 05/02/15 18:46, DaveA wrote: > You don't need much class understanding at all for this. Something > like: > > class Job: def __init__(self, retain, srcpath, suffix, syncpath, > snappath, ...): self.retain = retain = datetime.timedelta (days = > r