Re: [Tutor] List Comprehension Syntax

2012-12-23 Thread Malcolm Newsome
) for i in list]) k = int(k) except ValueError: print Args must be ints. Your list arg was: {0} and your k arg was '{1}'. .format(list, k) return None if k in s: print Index is: {0}.format(s.index(k)) else: return -1 Hope it helps! Malcolm Newsome

Re: [Tutor] Get/Set/Attribute Accessors in Python?

2012-12-07 Thread Malcolm Newsome
. Thankfully not so costly to the UK taxpayer. -- Cheers. Mark Lawrence. It's akin to Michael Jordan missing a three-pointer at the buzzer to lose a game...it can happen to the best of us. :-) Best, Malcolm Newsome ___ Tutor maillist - Tutor@python.org

[Tutor] Get/Set/Attribute Accessors in Python?

2012-12-05 Thread Malcolm Newsome
that have nothing to do with each other?) Hopefully these questions are clear enough... Thanks in advance, Malcolm Newsome ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo

Re: [Tutor] Get/Set/Attribute Accessors in Python?

2012-12-05 Thread Malcolm Newsome
Thanks gentlemen! Your answers were very thorough and helpful. I'll play with this some. Malcolm Newsome ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] map() practice

2012-10-20 Thread Malcolm Newsome
Hello all, I looked at map() tonight. I think I have a decent understanding now of how it works. However, I'm wondering when it is most commonly used in the real world and if you could provide some examples (I like to do a lot of web stuff...it that helps with regards to providing a context

[Tutor] Apprenticeships

2012-09-29 Thread Malcolm Newsome
(or, if not a formal apprenticeship, a shop that's looking for a very self-motivated Junior Dev that is quite eager to learn, contribute, and be mentored). I apologize if this is an improper request for this forum. Many thanks in advance! Malcolm Newsome malcolm.news...@gmail.com mailto:malcolm.news

[Tutor] Coding Challenges

2012-05-21 Thread Malcolm Newsome
of sorts? Then, those who participated could receive suggestions on how their code could have been written differently. If not, and you know of something else like this that exists, would you kindly share those resources? Thanks! Malcolm Newsome Sent from my Windows Phone

[Tutor] Virtualenv Error

2011-04-24 Thread Malcolm Newsome
Hey All, Does anyone have any experience creating virtualenvs that can assist me with this error. I'm running windows 7, python 2.7.1 and virtualenv 1.6. I installed virtualenv using easy_install and there were no errors. I get the following error when trying to create a virtualenv.

[Tutor] Virtualenv Error

2011-04-09 Thread Malcolm Newsome
Hey All, I installed virtualenv and am getting this error when trying to create one. I'm running Windows 7. Can anyone help?? Thanks! Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved. C:\Users\Malcolmvirtualenv chipysite New python

Re: [Tutor] Guessing Game Program

2011-03-26 Thread Malcolm Newsome
== __main__: main() -Original Message- From: Donald Bedsole [mailto:drbeds...@gmail.com] Sent: Thursday, March 24, 2011 11:54 PM To: Malcolm Newsome Subject: Re: [Tutor] Guessing Game Program Hi Malcolm :-) On Fri, Mar 25, 2011 at 12:37 AM, Malcolm Newsome malcolm.news...@gmail.com

Re: [Tutor] Guessing Game Program

2011-03-24 Thread Malcolm Newsome
Hey Don! I posted an eerily similar request to another python group about two weeks ago! I, too, am very new to programming and the guessing game was my first shot at writing a script from scratch! Below is my code (improved with some help from others). I still would like to make some