Re: [Tutor] Introduction - log exercise

2009-11-17 Thread Nick Stinemates
> I will read lines from file, with the 'for loop', and then I will check them > for > 'foo' matches with a 'while loop', if matches I (somehow) re-initialise the > list, and if there is no matches for foo, I will append line to the list. > When I > get to a blank line (end of block), write myLis

Re: [Tutor] Python on Ubuntu 10.10?

2011-01-15 Thread Nick Stinemates
Python comes pre installed on Ubuntu, as most of the GUI is written in it. Nick On Friday, January 14, 2011, Joel Knoll wrote: > > > > > > Hello, > > I am new to programming and to Python.  I've been using Python with IDLE on > Windows Vista for a few weeks now. > (And I'm loving it!)  However,

Re: [Tutor] OOP question

2011-01-18 Thread Nick Stinemates
Updated inline. Check the updated definiton of winAmount. Nick On Tue, Jan 18, 2011 at 9:25 AM, Ben Ganzfried wrote: > Hey guys, > > I'm trying to get a version of Roulette working and I had a quick > question. Here is my code: > > class Outcome: > > def __init__(self, name, odds): >

Re: [Tutor] OOP question

2011-01-19 Thread Nick Stinemates
a winning bet)...when you say expand on them, what do you mean > exactly? > > Thanks again, really much appreciated! > > > On Tue, Jan 18, 2011 at 4:31 PM, Nick Stinemates wrote: > >> You may also want to look in to the __eq__ and __ne__ methods. You're just >> r

Re: [Tutor] Sound question

2011-04-08 Thread Nick Stinemates
On Fri, Apr 8, 2011 at 5:12 PM, Alan Gauld wrote: > > "Jan Erik Moström" wrote > > A couple of my students need to be able to play sounds, ... >> >> >> I looked around and found several packages but they all >> seem to have some kind platform restrictions. >> > > Sound tends to be platform speci