) 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
. 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
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
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
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
(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
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
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.
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
== __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
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
11 matches
Mail list logo