On Wed, Apr 23, 2014 at 04:46:49PM -0700, Denis Heidtmann wrote:
> In a coursera python course video the following code was presented:
>
> a = [4,5,6]
>
> def mutate_part(x):
> a[1] = x
>
> mutate_part(200)
>
> The presenter said something like "a is a global variable, so a becomes
>
> [4,
This makes sense. Thanks.
No question on the specific code, I was just thinking I should show I'd done
any experimenting with the methods
Hi Patti,
My answers below, interleaved between your questions.
On Tue, Apr 22, 2014 at 04:18:38PM -0700, Patti Scott wrote:
> I'm practicing with li
In a coursera python course video the following code was presented:
a = [4,5,6]
def mutate_part(x):
a[1] = x
mutate_part(200)
The presenter said something like "a is a global variable, so a becomes
[4,200,6] after running mutate_part(200)."
Indeed it does, but why does this work without s
Hi Brian,
No problem. Just be more careful next time. In particular, look at
the context. The homework question I'm posing to Sunil is fairly
basic, intentionally so, but is designed so that if he solves it with
basic, standard tools (fresh list construction, list iteration, list
appending), he
My Bad
On Wed, Apr 23, 2014 at 1:53 PM, Danny Yoo wrote:
> Hi Brian,
>
> I would suggest not providing homework solutions.
>
> Look at the beginning of this thread to see why just giving homework
> solutions is not helpful for the questioner.
>
___
Tu
Hi Brian,
I would suggest not providing homework solutions.
Look at the beginning of this thread to see why just giving homework
solutions is not helpful for the questioner.
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription o
>>> nums1 = [3, 1, 4]
>>> nums2 = [2, 7, 1]
>>> [ sum(i) for i in zip(nums1, nums2)]
[5, 8, 5]
On Wed, Apr 23, 2014 at 1:12 PM, Danny Yoo wrote:
> Hi Sunil,
>
>
> Try a simpler but related problem first.
>
> Say that you have two lists of numbers, like:
>
> ##
> nums1 = [3, 1, 4]
> nums2
Hi Sunil,
Try a simpler but related problem first.
Say that you have two lists of numbers, like:
##
nums1 = [3, 1, 4]
nums2 = [2, 7, 1]
##
Can you design a function addLists() that takes two lists of numbers
of equal length, and adds them together? For example,
addLists(nums1, nu
On 23/04/2014 14:56, Jorge Leon wrote:
class Cylinder(Obstacle):
def __init__(self,position, height, radius):
super(Obstacle,self).__init__(position)
But it looks to me like the last line should be
super(Cylinder, self).__init__(position)
Hey, thanks again for the help
i have
{'extreme_fajita': [*{5: 4.0}*, *{6: 6.0}*],
'fancy_european_water': [*{5: 8.0}*, *{6: 5.0}*]}
if the keys of the dictionaries(bold & italic) are equal. I want to add
bold dict values, & italic dict values.
result should some thing like this
[{5:12.0},{6:11.5}]
i tried to do...
but ne
> class Cylinder(Obstacle):
>def __init__(self,position, height, radius):
>super(Obstacle,self).__init__(position)
>
> But it looks to me like the last line should be
> super(Cylinder, self).__init__(position)
>
Hey, thanks again for the help and sorry about all the format err
On 23/04/14 04:35, Hobie Audet wrote:
documentation has me confused. Specifically, the documentation on the
SMTPRecipientsRefused exception says:
All recipient addresses refused. The errors for each recipient are
accessible through the attribute recipients,...
But where is the "recipi
Hobie Audet Wrote in message:
>
It would be much better if you used text emails to post on this
text list, rather than html. For one thing, your indentation
might not be messed up. For another, I might be able to do
proper quoting.
>
(you wrote):
My code looks something like this:
I am using Python 3.3 and smtplib to generate and send some
E-mail. I am trying to figure out how to handle some exceptions, but
some of the documentation has me confused. Specifically, the
documentation on the SMTPRecipientsRefused exception says:
exception smtplib.SMTPRecipientsRefused
Al
14 matches
Mail list logo