Can anyone explain this code below:
import sys
import os
if __name__ == '__main__':
sys.path.insert(0, "..")
else:
sys.path.insert(0, os.path.join(
os.path.split(__file__)[0], '..'))
___
Tutor maillist - Tutor@python.org
To unsubscrib
def Move(label):
label = "Anything"
a_list = [1,2,3]
Move(a_list)
I don't see any error when executing above but when i manually assign
[1,2,3] = "Anything" i get error
Why?
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscripti
and why with sum(one, two) we get an error whereas not with sum((one, two))
?
On Fri, Jul 5, 2013 at 11:27 AM, Amandeep Behl wrote:
> What is the difference between max(one, two) and max((one, two)) ?
>
> Thanks
> Aman
>
___
Tutor mai
What is the difference between max(one, two) and max((one, two)) ?
Thanks
Aman
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor