Re: [Tutor] recursivity and lists

2016-03-05 Thread Robert Nanney
Would this meet the requirements? merged_list = list1.extend(list2).sort() On Mar 4, 2016 3:34 PM, "Danny Yoo" wrote: > > As we can see, we have to do a lot more consideration of what state > > our values are in, due to all the mutation happening. It also shows > > that the second recursive cal

Re: [Tutor] responding to command line

2015-11-25 Thread Robert Nanney
I like to use paramiko for these types of things. Of course I don't have all the details but from the info you have provided it seems like you should be able to do this with ansible itself. Regards, Robert ___ Tutor maillist - Tutor@python.org To unsub

tutor@python.org

2015-10-14 Thread Robert Nanney
To elaborate a little more this is comparing the 'one' bit. Any odd number will have the 'one' bit set. On Oct 14, 2015 6:30 PM, "Joel Goldstick" wrote: > On Wed, Oct 14, 2015 at 4:47 PM, ਨਿਹੰਗ ਪੰਜਾਬੀ wrote: > > > 'if (n & 1)' below works but I don't understand why/how. Kindly help. > > > > =

Re: [Tutor] ftp socket.error

2015-09-11 Thread Robert Nanney
I may be mistaken, but it looks like you are trying to open the socket on port 2021. Standard ftp uses 21. Is the server listening on 2021? On Sep 11, 2015 5:29 PM, "Martin A. Brown" wrote: > > Hi there Richard, > > Strictly speaking, it's no Python question, but... good ol' FTP. > > socket.error

[Tutor] Unpacking lists

2014-07-08 Thread Robert Nanney
Hello All, I have the following code. The idea is to have one list that contains all of the items from the different iterable types and maintain the order of the items. Python 2.7.6 |Anaconda 2.0.0 (x86_64)| (default, May 27 2014, 14:58:54) #!/usr/bin/python #list_test2.py list1 = [1, 8, 15] l