Re: [Tutor] Invitation to connect on LinkedIn

2009-09-15 Thread Michael Connors
utor@python.org >> To unsubscribe or change subscription options: >> http://mail.python.org/mailman/listinfo/tutor >> >> > > ___ > Tutor maillist - Tutor@python.org > To unsubscribe or change subscription

Re: [Tutor] Pyduino

2009-09-08 Thread Michael Connors
cted arduino would be written in Python. -- Michael Connors Leiden The Netherlands ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] noob question (Windows, Python 3.1)

2009-08-06 Thread Michael Connors
my friend and he > said that he has the same problem...anybody?...help??? > > It closes because it is finished. If you want to see the result, you could either: - Place another input("") after the print statement. - Run the program from the c

Re: [Tutor] Best Python Editor

2009-06-15 Thread Michael Connors
Back when I used Windows I used this: http://www.crimsoneditor.com/ I think its not being developed anymore, but it is a great editor/IDE that supports many languages. -- Michael Connors ___ Tutor maillist - Tutor@python.org http://mail.python.org

Re: [Tutor] (no subject)

2009-03-17 Thread Michael Connors
_________ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > > -- Michael Connors ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Question

2008-11-10 Thread Michael Connors
this to be the reason it is popular in tutorials, and if all the tutorials you use, use nano, you will probably use it too. -- Michael Connors ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Table like array in Python

2008-03-26 Thread Michael Connors
and values. So you could do something like this: records = {'US': {'2007': 22.5, '2008': 44.8}, 'UK': {'2008': 3.4, '2007': 2.6}} You can now access a particular record as follows: In: print records['UK']['2007']

Re: [Tutor] decimal precision

2008-03-25 Thread Michael Connors
On 25/03/2008, elis aeris <[EMAIL PROTECTED]> wrote: > > what if i want it only to 2nd decimal? > > what if i want to cut off everything behind decimal? > In: print "%.2f" % (0.99) Out: 0.99 http://docs.python.org/lib/typesseq-s

Re: [Tutor] decimal precision

2008-03-25 Thread Michael Connors
___ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > > I think to do float division the operands should be floats. So if you do: print float(a-x) / float(w) It s

Re: [Tutor] decimal precision

2008-03-25 Thread Michael Connors
___ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > > I think to do float division the operands should be floats. So if you do: print float(a-x) / float(w) It s

Re: [Tutor] Idle

2008-03-14 Thread Michael Connors
nction as follows: y = randrange(1,n) Regards, -- Michael Connors ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] How do I get GASP

2008-02-26 Thread Michael Connors
is maybe: https://launchpad.net/gasp-code -- Michael Connors ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] interview questions

2008-01-19 Thread Michael Connors
be prepared to answer "Why do you want to work with Python?" and have a clear picture of its pros and cons. The job is probably not all about Python, so don't forget to prepare the other areas you mentioned on your CV. -- Michael Connors ___

Re: [Tutor] Problem with while loop

2007-09-10 Thread Michael Connors
ot; ) > if pinPattern.match(howmany): > while counter < int(howmany): > pin = randint(,) > print pin > counter += 1 > else: > print "%s is not valid 4 digit integer"%howmany > > > -vishnuMohan > -- Michael Connors ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Problem with while loop

2007-09-07 Thread Michael Connors
You could use string formatting to output all pin numbers as 4 character strings. http://docs.python.org/lib/typesseq-strings.html On 07/09/2007, matte <[EMAIL PROTECTED]> wrote: > > Perfect... > > Thanks very much for your help... > > On 9/7/07, Michael Connors &

Re: [Tutor] Problem with while loop

2007-09-07 Thread Michael Connors
ing ? > > -m > > ___ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > > -- Michael Connors ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Python / CGI

2007-09-06 Thread Michael Connors
e McClintock > > ___ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > > -- Michael Connors ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] python syntax: underscore

2007-07-12 Thread Michael Connors
Hi, I was following the thread on about the _("xx") thingy. Since then I played around a bit with underscores at the console and it seems to me that if you execute code with a return value but you dont save the result, then _ is a pointer to this value. Is that correct? 4 4 print _ 4 So if

Re: [Tutor] How can I escape a pound symbol in my script?

2007-07-06 Thread Michael Connors
ely I'd have thought would be "sharp" as in music notation, which is where, I think, it originated. And this is really off-topic now! :-) Alan G. _______ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor