On Tuesday 17 April 2007 14:42:50 [EMAIL PROTECTED] wrote:
> >>> range(-10, -100, -30)
>
> [-10, -40, -70]
>
> How come it prints on -40 or -70.
>
> Does -70 come from -70 -> -100?
>
from -10 to -100 (excluding -100)
-10-30 = -40
-40-30= -70
___
Tutor mai
Reply to [EMAIL PROTECTED] 07-04-17 07:26:
>I've been reading the python tutorial trying to get used to the style
>tryna understand it. So I come across this: "sys.argv[0]" in the tutorial
>on python.org. What is "sys.argv"? How does it work? Can someone give me
>a simple example on how to use
I've been reading the python tutorial trying to get used to the style
tryna understand it. So I come across this: "sys.argv[0]" in the tutorial
on python.org. What is "sys.argv"? How does it work? Can someone give me
a simple example on how to use it?
Hello List,
I am just learning Python/PyQt4, and have a problem I cannot figure out.
Here's what happens.
Traceback (most recent call last):
File "iac.py", line 124, in on_actionOpen_triggered
self.open()
File "iac.py", line 66, in open
if self.isUntitled and self.textBrowser.documen
Hi,
I am executing following lines of code:
def WEP40_KEY(n):
params = urllib.urlencode({})
headers = {"Connection": "Keep-Alive","Authorization": ""}
conn = httplib.HTTPConnection(HOST)
conn.request("GET", "/w_sec.htm HTTP/1.1", params, headers)
response = conn.getresponse()
print res
The main thing your program lacks is flexibility. Adding new puzzles
requires chaining together a series of if..else statements and creating
variables for each hint.
Here's my quick version. I store the puzzles and the hints in a two-tuple
sequence. Following this method you could easily add a
On 4/17/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I've been reading the python tutorial trying to get used to the style
> tryna understand it. So I come across this: "sys.argv[0]" in the tutorial
> on python.org. What is "sys.argv"? How does it work? Can someone give me
> a simple exam
If what you posted is exactly what your code looks like, then you've got
an indentation problem. Since Python doesn't use {}'s for code blocks,
it uses indentation instead, and it's somewhat picky about indentation.
I think all the code after the first conn.request should line up with
the conn.req
Hello Everyone,
This is Alexander Kapshuk writing here again ...
Could you please have a look at the code below and let me know of any
shortcuts that could be used there.
The code works fine as it is. I was just wandering if there was a
better, more compact and elegant way of writing th
Alright I'm a bit confused when looking at how range works. I'm reading
lesson 4.3 in the python tutorial. http://docs.python.org/tut/node6.html
I came across this:
>>> range(-10, -100, -30)
[-10, -40, -70]
How come it prints on -40 or -70.
Does -70 come from -70 -> -100?
This is really confu
Reply to [EMAIL PROTECTED] 07-04-17 07:42:
>How come it prints on -40 or -70.
>
>Does -70 come from -70 -> -100?
>
>This is really confusing me.
I don't really understand your question, the definition of range
range(...)
range([start,] stop[, step]) -> list of integers
Return a list c
On 4/17/07, Kirk Bailey <[EMAIL PROTECTED]> wrote:
> IF my memory serves well, argument 0 in that list is the name of the
> program itself, as well as the path to it if any was provided.
Stop replying to my mailbox.
--
- Rikard - http://bos.hack.org/cv/
Hello everybody,
I hope this is the right place to make this question. If not I would
appreciate
help in getting pointed towards a different resource...
I just began to learn python. It is a nice language to learn, and I am
using
"dive into python" which is also a nicely written
Rikard Bosnjakovic wrote:
> On 4/17/07, Kirk Bailey <[EMAIL PROTECTED]> wrote:
>
>
>> IF my memory serves well, argument 0 in that list is the name of the
>> program itself, as well as the path to it if any was provided.
>>
>
> Stop replying to my mailbox.
>
I really wish this list would
How can I used python online. I'm getting my hoster to install python and
I'm wondering how Do I use python online?
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
[EMAIL PROTECTED] wrote:
> How can I used python online. I'm getting my hoster to install python and
> I'm wondering how Do I use python online?
>
Could you be more specific?
--
Bob Gailer
510-978-4454
___
Tutor maillist - Tutor@python.org
http:/
I would like more information about this as well. I found something on
sourceforge about using python modules to run a web cam. I've got the
files, but not quite sure how to use the web server.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of [EMAIL PR
Regarding using Python for CGI - Googling "python cgi" reveals many
potentially useful links. These sound
http://www.cs.virginia.edu/~lab2q/
www.python.org/doc/essays/ppt/sd99east/sld038.htm
--
Bob Gailer
510-978-4454
___
Tutor maillist - Tutor@pyt
> -Original Message-
>
> To clarify point #2: Python - as any learning - IS
> challenging, but as I am
> learning it "just for fun" and without any real need to
> fulfil, I don't have any
> "operational challenge", if that makes any sense in English... :-/
>
> So far the best I could
Would someone kindly review the following code and error? This sample
program is copied from Python Programming for the Absolute Beginner (2nd
ed.) I'm running Python 2.3.5 (#62, Feb 8 2005, 16:23:02) [MSC v.1200 32
bit (Intel)] on win32. (Python 2.3 is the version referenced in this
edition.)
Ellen Kidda wrote:
> Would someone kindly review the following code and error? This sample
> program is copied from Python Programming for the Absolute Beginner (2nd
> ed.) I'm running Python 2.3.5 (#62, Feb 8 2005, 16:23:02) [MSC v.1200
> 32 bit (Intel)] on win32. (Python 2.3 is the version
Hi,
Do you want to:
1) use Python from a website or server without installing it in a computer?
2) use Python to do things with the Internet or servers, website, etc?
Hugo
[EMAIL PROTECTED] wrote:
> How can I used python online. I'm getting my hoster to install python and
> I'm wondering how
I found this site and I'm practicing coding and I write this script, but
I'm unsure why its not working. Everything goes well until it gets to the
part where it tries to calculate the formula. Inputs work fine anyone
know what I did wrong?
###
#Temperature Convert
On 4/17/07, Luke Paireepinart <[EMAIL PROTECTED]> wrote:
> I really wish this list would start mungin' some headers already.
I second that.
Not using a reply-to-tag is braindead.
--
- Rikard - http://bos.hack.org/cv/
___
Tutor maillist - Tutor@pyt
On 4/18/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I found this site and I'm practicing coding and I write this script, but
> I'm unsure why its not working. Everything goes well until it gets to the
> part where it tries to calculate the formula. Inputs work fine anyone
> know what I di
Rikard Bosnjakovic wrote:
> On 4/18/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
>> I found this site and I'm practicing coding and I write this script, but
>> I'm unsure why its not working. Everything goes well until it gets to the
>> part where it tries to calculate the formula. Inp
26 matches
Mail list logo