Re: [Tutor] Socket Module

2015-07-28 Thread Nym City via Tutor
Hi Martin, Thank you for taking the time to write such a detailed response. Very much appreciate it. I tried the code again with modifications that you suggested and even though none of the public addresses resolved; I did get little more details. I am still working on finding a solution for

Re: [Tutor] Shading Between Curves with Different Colour Over Specified X value Range

2015-07-28 Thread Alan Gauld
On 28/07/15 01:00, Colin Ross wrote: *Issue: * See attached figure. Thank you. There is no attachment to see, sorry :( My apologies. SHould be there now! The problem is a lot of mailing list servers (and even some corporate mail servers) strip off attachments. In this case I still

Re: [Tutor] Shading Between Curves with Different Colour Over Specified X value Range

2015-07-28 Thread Colin Ross
On Mon, Jul 27, 2015 at 5:01 PM, Mark Lawrence breamore...@yahoo.co.uk wrote: On 27/07/2015 19:47, Colin Ross wrote: *Goal:* Shade between I_2 (curve 1) and I_3 (curve 2) with following conditions: - Green for 0 x 4

Re: [Tutor] _ vs. _name vs. __name vs. name_ vs. __name__ usages

2015-07-28 Thread Alan Gauld
On 25/07/15 22:08, boB Stepp wrote: 4) name_ is used when one is forced to use one of Python's reserved words as a name. Various others have commented on the use cases for this. I'd just add that my solution to using a name that's already used by the language (or even already used by my

Re: [Tutor] the big o

2015-07-28 Thread Quiles, Stephanie
Hi Jason, I took Intro to Programming at Albright College and we used Starting Out with Python 3rd ed. Right now I am taking Data Structure and Analysis and we are using This book : http://interactivepython.org/runestone/static/pythonds/BasicDS/InfixPrefixandPostfixExpressions.html Thanks

[Tutor] Postfix notation [was: Re: the big o]

2015-07-28 Thread Alan Gauld
On 28/07/15 20:08, Quiles, Stephanie wrote: Hoi Stephanie, Please start a new topic on a new thread/subject. It makes funding stuff in the archives much easier. ...if someone could please make it a little easier to figure out postfix and infix? My homework assignment asks me to convert

Re: [Tutor] Concatenating columns via python

2015-07-28 Thread Alan Gauld
On 28/07/15 19:52, Hannah G. McDonald wrote: I extracted a table from a PDF so the data is quite messy and the data that should be in 1 row is in 3 colums, like so: year color location 1 1997 blue, MD 2green, 3

Re: [Tutor] line error on no. 7

2015-07-28 Thread Martin A. Brown
Hello again, The raw python code is located at http://tinyurl.com/oua9uqx It is not very long, so you can post inline (I pasted it below). If you have a longer piece of code, then, yes, a pastebin is a good choice. (Also, if in the future, you have a more complex piece of code, try to

Re: [Tutor] the big o

2015-07-28 Thread Danny Yoo
I took Intro to Programming at Albright College and we used Starting Out with Python 3rd ed. Right now I am taking Data Structure and Analysis and we are using This book : http://interactivepython.org/runestone/static/pythonds/BasicDS/InfixPrefixandPostfixExpressions.html Thanks Alan for

Re: [Tutor] mailing list

2015-07-28 Thread Steven D'Aprano
On Tue, Jul 28, 2015 at 09:35:14PM +0200, mikablom via Tutor wrote: I forgot how to stop getting mails from you all. please, will someone tell me how. thank you very much. At the bottom of every email on the mailing list, it says: To unsubscribe or change subscription options:

Re: [Tutor] Shading Between Curves with Different Colour Over Specified X value Range

2015-07-28 Thread Oscar Benjamin
On Mon, 27 Jul 2015 at 20:53 Colin Ross colin.ross@gmail.com wrote: *Goal:* Shade between I_2 (curve 1) and I_3 (curve 2) with following conditions: - Green for 0 x 4 - Red for 4 x 12 *Code:

Re: [Tutor] the big o

2015-07-28 Thread Alan Gauld
On 28/07/15 02:30, Quiles, Stephanie wrote: question asks give the big-o performance of the following code fragment: for i in range(n): for j in range(n): k = 2 + 2 ...i still cannot grasp the big-o. The big O is a way of describing the relative performance of an

[Tutor] script to lookup and extract the values next to it

2015-07-28 Thread s karthick babu
Dear All, I am new to python programming. is there a place where people exchange the python scripts? I would like to extract the values present next to certain text, Can any one help me ? Thanks in advance, Kadi ___ Tutor maillist -

Re: [Tutor] script to lookup and extract the values next to it

2015-07-28 Thread Alan Gauld
On 28/07/15 10:19, s karthick babu wrote: Dear All, I am new to python programming. Hi, welcome. is there a place where people exchange the python scripts? Not that I know of, although I suppose the Activestate catalog of recipes is sort of like that. I would like to extract the values

[Tutor] the big o

2015-07-28 Thread Quiles, Stephanie
Hello, I am trying to figure this out but i do not understand any of it. the question asks give the big-o performance of the following code fragment: for i in range(n): for j in range(n): k = 2 + 2 i am not sure how i am supposed to figure this out. i have been

Re: [Tutor] the big o

2015-07-28 Thread Joseph Lee
Hi Stephanie, I'm wondering which courses you were introduced to Python and which book you are using. I do understand how it might be difficult to understand this concept, especially for someone who is a complete novice to algorithm analysis where Big O shows up. I'll answer you inline.

[Tutor] Help Command Question

2015-07-28 Thread ltc.hotspot
Hi Everyone, I'm trying to print a command of list options by using the help command in the iPython interpreter. Read captured copy of the printout as follows: 'Python 2.7.10 |Anaconda 2.3.0 (64-bit)| (default, May 28 2015, 16:44:52) [MSC v. 1500 64 bit (AMD64)] Type copyright, credits or

Re: [Tutor] Help Command Question

2015-07-28 Thread Martin A. Brown
Hi there, In [1]: help list File ipython-input-1-823a3ff84bc4, line 1 help list ^ SyntaxError: invalid syntax.' Question: What is the correct help command? Try: help(list) Snipped from my ipython session: In [1]: help(list) Good luck, -Martin -- Martin A. Brown

Re: [Tutor] Help Command Question

2015-07-28 Thread Mark Lawrence
On 28/07/2015 18:00, ltc.hots...@gmail.com wrote: Hi Everyone, I'm trying to print a command of list options by using the help command in the iPython interpreter. Read captured copy of the printout as follows: 'Python 2.7.10 |Anaconda 2.3.0 (64-bit)| (default, May 28 2015, 16:44:52) [MSC v.

Re: [Tutor] mailing list

2015-07-28 Thread Danny Yoo
On Jul 28, 2015 12:38 PM, mikablom via Tutor tutor@python.org wrote: I forgot how to stop getting mails from you all. please, will someone tell me how. thank you very much. Visit https://mail.python.org/mailman/listinfo/tutor; you should be able to unsubscribe from there.

[Tutor] mailing list

2015-07-28 Thread mikablom via Tutor
I forgot how to stop getting mails from you all. please, will someone tell me how. thank you very much. Von Samsung-Tablet gesendet ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options:

[Tutor] line error on no. 7

2015-07-28 Thread ltc.hotspot
Hi Everyone, I'm writing python code to read a data text file, split the file into a list of words using the split(function) and to print the results in alphabetical order. The raw python code is located at http://tinyurl.com/oua9uqx The sample data is located at http://tinyurl.com/odt9nhe

[Tutor] Concatenating columns via python

2015-07-28 Thread Hannah G. McDonald
I extracted a table from a PDF so the data is quite messy and the data that should be in 1 row is in 3 colums, like so: year color location 1 1997 blue, MD 2green, 3and yellow SO far my code is below, but I know I