[Tutor] forcing the None values of a dictionary

2012-10-03 Thread Brannon, Terrence
I'm wondering if there is something I overlooked for this function I wrote... and also whether it could've been done destrictively instead of returning a new dictionary: def dictNoneValueTo(d, new_value=''): """force None values in a dictionary to a default value""" for k in d: i

Re: [Tutor] Print List

2012-09-12 Thread Brannon, Terrence
From: Tutor [mailto:tutor-bounces+terrence.brannon=bankofamerica@python.org] On Behalf Of Ashley Fowler Sent: Wednesday, September 12, 2012 11:36 AM To: tutor@python.org Subject: [Tutor] Print List I am trying to complete the following below: You also need to write a function "printLis

Re: [Tutor] Question

2012-09-11 Thread Brannon, Terrence
From: Tutor [mailto:tutor-bounces+terrence.brannon=bankofamerica@python.org] On Behalf Of Ashley Fowler Sent: Tuesday, September 11, 2012 12:08 PM To: tutor@python.org Subject: [Tutor] Question I have a question. In a assignment it asks for me to do the following below... if "peek" then

Re: [Tutor] 'class' for someone with no object oriented programming experience

2012-09-11 Thread Brannon, Terrence
From: Tutor [mailto:tutor-bounces+terrence.brannon=bankofamerica@python.org] On Behalf Of Art Scheel Sent: Tuesday, September 11, 2012 3:34 PM To: tutor@python.org Subject: [Tutor] 'class' for someone with no object oriented programming experience Are there any better resources for learn