[Tutor] For Loop

2015-10-30 Thread Shelby Neely
Hi, I was wondering if someone can complete a for loop in an array for me. Thank you ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] For Loop

2015-10-30 Thread Alan Gauld
On 30/10/15 01:27, Shelby Neely wrote: Hi, I was wondering if someone can complete a for loop in an array for me. for item in anArray: print(item) If that doesn't help then you are going to have to explain more about what exactly you want to know. Show us your code, explain what you expected t

Re: [Tutor] counter not working in Quick Sort script

2015-10-30 Thread Patti Scott via Tutor
That make sense, thank you. I changed the quick_sort() to def quick_sort(A, start, stop, count): if start < stop: # increment count by length of partition less the pivot count += (stop - start - 1) print(count) split = partition(A, start, stop) # recur

Re: [Tutor] For Loop

2015-10-30 Thread Martin A. Brown
Hello Shelby, > I was wondering if someone can complete a for loop in an array for > me. Your question is a bit too terse. You don't give us too much detail in understanding what you want to do. But, we are the Tutor list and we are here to help! Here are a few things which may help you get

[Tutor] ncurses question

2015-10-30 Thread bruce
Hi. Looking over various sites on ncurses. Curious. I see various chunks of code for creating multiple windows.. But I haven't seen any kind of example that shows how to 'move' or switch between multiple windows. Anyone have any code sample, or any tutorial/site that you could point me to! I'm t

Re: [Tutor] ncurses question

2015-10-30 Thread Laura Creighton
In a message of Fri, 30 Oct 2015 16:06:44 -0400, bruce writes: >Hi. > >Looking over various sites on ncurses. Curious. I see various chunks >of code for creating multiple windows.. But I haven't seen any kind of >example that shows how to 'move' or switch between multiple windows. > >Anyone have an

Re: [Tutor] For Loop

2015-10-30 Thread Danny Yoo
On Fri, Oct 30, 2015 at 10:48 AM, Martin A. Brown wrote: > > Hello Shelby, > >> I was wondering if someone can complete a for loop in an array for >> me. > > Your question is a bit too terse. You don't give us too much detail > in understanding what you want to do. Also, we have no idea *why* y

[Tutor] Plotting with python

2015-10-30 Thread Terry Carroll
If you were going to get started doing some simple plotting with Python 2.7 (in my case, I'm simply plotting temperature against time-of-day) what would you use? - matplotlib [1] - gnuplot [2] - something else entirely? Assume no substantial familiarity with the underlying plotting softwar

Re: [Tutor] Plotting with python

2015-10-30 Thread Mark Lawrence
On 31/10/2015 00:00, Terry Carroll wrote: If you were going to get started doing some simple plotting with Python 2.7 (in my case, I'm simply plotting temperature against time-of-day) what would you use? - matplotlib [1] - gnuplot [2] - something else entirely? Assume no substantial famil

Re: [Tutor] Plotting with python

2015-10-30 Thread Martin A. Brown
>> If you were going to get started doing some simple plotting with Python >> 2.7 (in my case, I'm simply plotting temperature against time-of-day) >> what would you use? >> >> - matplotlib [1] >> - gnuplot [2] >> - something else entirely? >> >> Assume no substantial familiarity with the under

Re: [Tutor] Plotting with python

2015-10-30 Thread Laura Creighton
I'd use matplotlib, unless the ultimate goal is to render onto a webpage. Then I would use bokeh. http://bokeh.pydata.org/en/latest/ Laura ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/m