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

2015-07-27 Thread Mark Lawrence
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 - Red for 4 x 12 *Code: * *Note: Code currently only

Re: [Tutor] Abs

2015-07-27 Thread Chris Roy-Smith
On 27/07/15 11:06, Job wrote: I want to be able to ask a user to input an integer and print out the root and power of the given integer. Why do you use abs(x) for this program? I don't understand or see the link between abs() and root and powers. This reminds me of this: By knowing that when

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

2015-07-27 Thread Colin Ross
*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: * *Note: Code currently only attempting to shade green for 0 x 4 * import

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

2015-07-27 Thread Cameron Simpson
On 25Jul2015 16:08, boB Stepp robertvst...@gmail.com wrote: After having a long discussion with my wife on her user requirements, I am convinced that an OO approach is required. Which is just as well as that has been one of my next areas of learning to do. I am currently reading Python 3

[Tutor] Abs

2015-07-27 Thread Job
I want to be able to ask a user to input an integer and print out the root and power of the given integer. Why do you use abs(x) for this program? I don't understand or see the link between abs() and root and powers. This reminds me of this: By knowing that when x%2==1 x is an odd number and

Re: [Tutor] Abs

2015-07-27 Thread Alan Gauld
On 27/07/15 02:06, Job wrote: I want to be able to ask a user to input an integer and print out the root and power of the given integer. Why do you use abs(x) for this program? You don't need to, and I'm not sure why you think you do? I assume it says something about it in your assignment