Re: [Tutor] Mailbox

2015-07-29 Thread Cameron Simpson
On 29Jul2015 21:55, ltc.hots...@gmail.com wrote: I have a second and unrelated question: I tried to work backward to see if there is a logic error associated with a variable is being skipped over: #top of code, initialize variable output_list = ["default"] Curious: why not just make this a

[Tutor] Mailbox

2015-07-29 Thread ltc.hotspot
Hi Everyone: I have a second and unrelated question: I tried to work backward to see if there is a logic error associated with a variable is being skipped over: #top of code, initialize variable output_list = ["default"] #rest of code If you get at the end print output_lis

Re: [Tutor] mbox-short

2015-07-29 Thread Alan Gauld
On 29/07/15 19:38, ltc.hots...@gmail.com wrote: How do I file in the empty list at 0 on line # 3 to produce the desired output: I have no idea what you mean? What does "file in the empty list" mean? What are you trying to do? The first goal of the program is to produce an output from the d

Re: [Tutor] mbox-short

2015-07-29 Thread Mark Lawrence
On 29/07/2015 19:38, ltc.hots...@gmail.com wrote: I have no intention of answering a question that contains massives of whitespace and no code. Please post your code inline. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Law

Re: [Tutor] Basic question about docstrings

2015-07-29 Thread Danny Yoo
On Jul 29, 2015 12:45 PM, "David Aldrich" wrote: > > Hi > > If I have a script called main.py and document a function in it: > > def get_value(x): > """ > Some text ... > :param x: Some value > :returns: Something useful > """ > > What is the most basic way of showing

Re: [Tutor] Basic question about docstrings

2015-07-29 Thread Emile van Sebille
On 7/29/2015 8:45 AM, David Aldrich wrote: Hi If I have a script called main.py and document a function in it: def get_value(x): """ Some text ... :param x: Some value :returns: Something useful """ What is the most basic way of showing those docstrings at the

Re: [Tutor] mbox-short

2015-07-29 Thread Danny Yoo
> How do I file in the empty list at 0 on line # 3 to produce the desired output: What trouble are you having? Please try to describe where you are getting stuck. What have you tried? Is there anything confusing? Also note that a few of your peers have asked the exact same homework assignment

[Tutor] mbox-short

2015-07-29 Thread ltc.hotspot
Hi Everyone, How do I file in the empty list at 0 on line # 3 to produce the desired output: The first goal of the program is to produce an output from the date list file as following: stephen.marqu...@uct.ac.za lo...@media.berkeley.edu zq...@umich.edu rjl...@iupui.edu zq...@umich.e

[Tutor] Basic question about docstrings

2015-07-29 Thread David Aldrich
Hi If I have a script called main.py and document a function in it: def get_value(x): """ Some text ... :param x: Some value :returns: Something useful """ What is the most basic way of showing those docstrings at the Python prompt? For getting started with document

[Tutor] Arrow of constant size on log plot

2015-07-29 Thread Colin Ross
I am attempting to draw an arrow that begins at a specified point on a logarithmic plot and then extends a certain distance in the -Y direction. This part is fine, however I would like to draw multiple arrows with the same size corresponding to different points on a plot. If I specify a certain val

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

2015-07-29 Thread Colin Ross
On Tue, Jul 28, 2015 at 11:03 AM, Oscar Benjamin wrote: > On Mon, 27 Jul 2015 at 20:53 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] Root and power

2015-07-29 Thread Steven D'Aprano
On Tue, Jul 28, 2015 at 08:29:00PM -0700, Job Hernandez wrote: [...] > I need to learn how in the world do find the root and power of an integer > that x user entered? I haven been looking on the python website for an > appropriate function but I have not. Let's suppose the user entered 36. Then

Re: [Tutor] String Attribute

2015-07-29 Thread Steven D'Aprano
On Tue, Jul 28, 2015 at 11:33:53PM +, ltc.hots...@gmail.com wrote: > > Hi Everyone: > > What is the source of the syntax error to the String Attribute? > > Go to the following URL links and view a copy of the raw data file code and > sample data: Please don't send people to URLs to view y

Re: [Tutor] I need help with my homework. No, really....

2015-07-29 Thread Steven D'Aprano
Part 3... On Wed, Jul 29, 2015 at 04:16:58AM -0500, Lissa Hopson wrote: > following: > > 1. Load array x column-wise and array y row-wise > 2. Multiply x by y to compute array z > 3. Compute the sum of all elements in column 2 of array x and add it to the > sum of all elements in row 2 of y (the

Re: [Tutor] I need help with my homework. No, really....

2015-07-29 Thread Steven D'Aprano
Part 2... On Wed, Jul 29, 2015 at 04:16:58AM -0500, Lissa Hopson wrote: > Given x as an array of [5,3] and y as an array of [3,7] perform the > following: > > 1. Load array x column-wise and array y row-wise > 2. Multiply x by y to compute array z > 3. Compute the sum of all elements in column 2

Re: [Tutor] I need help with my homework. No, really....

2015-07-29 Thread Steven D'Aprano
On Wed, Jul 29, 2015 at 04:16:58AM -0500, Lissa Hopson wrote: > I'm taking a beginning Python course at Austin Community College. I'm also > taking two other project-based web programming courses. It's summer > semester, meaning we have eight weeks instead of the usual 16 to finish all > the requir

[Tutor] I need help with my homework. No, really....

2015-07-29 Thread Lissa Hopson
I'm taking a beginning Python course at Austin Community College. I'm also taking two other project-based web programming courses. It's summer semester, meaning we have eight weeks instead of the usual 16 to finish all the requirements. The semester ends Friday, July 131st. Yes, I am aware that I'm

Re: [Tutor] Root and power

2015-07-29 Thread David Palao
2015-07-29 5:29 GMT+02:00 Job Hernandez : > How is it going tutors? > > The following problem seems impossible to me: > > "*Write a program that asks the user to enter an integer and prints two > integers, root and pwr, such that 0 < pwr < 6 and root^pwr (root**pwr) is > equal to the integer entere

Re: [Tutor] Root and power

2015-07-29 Thread Alan Gauld
On 29/07/15 04:29, Job Hernandez wrote: How is it going tutors? The following problem seems impossible to me: I made a reply in the thread 'Abs' started on July 27th. Basically you can use the pow() function. The power lies between 1-5. The largest root will be the same as the user input sin

Re: [Tutor] Abs

2015-07-29 Thread Alan Gauld
On 29/07/15 09:51, Alan Gauld wrote: On 29/07/15 04:28, Job Hernandez wrote: How is it going tutors? You only sent it to me. Please use Reply All to include the list. My mistake, you sent it to the list too. For some reason my mailer didn't show the tutor header... Its in a new thread now.

Re: [Tutor] String Attribute

2015-07-29 Thread Alan Gauld
On 29/07/15 00:33, ltc.hots...@gmail.com wrote: Hi Everyone: What is the source of the syntax error to the String Attribute? Normally I'd ask you to post the full text of any errors. They usually contain a lot of useful information. They also help us identify which syntax error you are askin

Re: [Tutor] Abs

2015-07-29 Thread Alan Gauld
On 29/07/15 04:28, Job Hernandez wrote: How is it going tutors? You only sent it to me. Please use Reply All to include the list. The following problem seems impossible to me: "*Write a program that asks the user to enter an integer and prints two integers, /root /and /pwr/, such that 0 <

Re: [Tutor] line error on no. 7

2015-07-29 Thread ltc.hotspot
Thanks, I’ll need some time to review your notes Sent from Surface From: Martin A. Brown Sent: ‎Tuesday‎, ‎July‎ ‎28‎, ‎2015 ‎4‎:‎41‎ ‎PM To: ltc.hots...@gmail.com Cc: Tutor@python.org Hello again, > The raw python code is located at http://tinyurl.com/oua9uqx It is not very long

[Tutor] Root and power

2015-07-29 Thread Job Hernandez
How is it going tutors? The following problem seems impossible to me: "*Write a program that asks the user to enter an integer and prints two integers, root and pwr, such that 0 < pwr < 6 and root^pwr (root**pwr) is equal to the integer entered by the user. If no such pair of integers exists, it

[Tutor] String Attribute

2015-07-29 Thread ltc.hotspot
Hi Everyone: What is the source of the syntax error to the String Attribute? Go to the following URL links and view a copy of the raw data file code and sample data: 1.) http://tinyurl.com/p2xxxhl 2.) http://tinyurl.com/nclg6pq Here is the desired output: stephen.marqu...@uct.ac.za