[Tutor] Can anyone explain this

2013-08-07 Thread Amandeep Behl
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

[Tutor] Question

2013-07-23 Thread Amandeep Behl
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

Re: [Tutor] Difference between max(one, two) and max((one, two))

2013-07-10 Thread Amandeep Behl
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

[Tutor] Difference between max(one, two) and max((one, two))

2013-07-10 Thread Amandeep Behl
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