27;ll wake up. What a waste of energy.
> If people want me to read their email, they should send it to me
> in an open, universal format, which for email is plain text. It's
> as simple as that.
Is Unicode allowed, or is 7 bit ASCII the only right way?
--
John S
Roedy Green <[EMAIL PROTECTED]> wrote:
> On 8 Oct 2005 23:39:27 GMT, John Bokma <[EMAIL PROTECTED]> wrote or
> quoted :
>
>>Yeah, yeah, and 640K is enough for everybody. Same song, different tune.
>
> For how long. Surely attachments are a stop gap. Can you ima
it wasn't stresed during
high-volume times. The two systems (one for redundancy) that run the
Python program have been running for six years.
-- John Waycott
--
http://mail.python.org/mailman/listinfo/python-list
Roedy Green <[EMAIL PROTECTED]> wrote:
> So let's say I decide to send an email to Donald Knuth.
:-)
--
John Small Perl scripts: http://johnbokma.com/perl/
Perl programmer available: http://castleamber.com/
> "gurkesaft" == gurkesaft <[EMAIL PROTECTED]> writes:
gurkesaft> Thank you, Robert. I noticed how obsolete it is!
gurkesaft> There is no documentation.
gurkesaft> Matplotlib freezes my system if I close a plot and make
gurkesaft> a new one :(. Bah. Windows :)
Have you se
true:
"My secretary prints out all messages addressed to taocp at cs.stanford.edu
or knuth-bug at cs.stanford.edu, so that I can reply with written comments
when I have a chance."
<http://www-cs-faculty.stanford.edu/~knuth/email.html>
And I am sure Roedy is aware of this, hence his
Hi,
I implemented a SimpleXMLRPCServer, modified it slightly to restrict
clients based on their IP, but I need to take it a stage further, and
add user authentication. I would appreciate any pointers as to how I
might go about this, or any packages which already provide this. I'm
guessing th
John Abel wrote:
>Hi,
>
>I implemented a SimpleXMLRPCServer, modified it slightly to restrict
>clients based on their IP, but I need to take it a stage further, and
>add user authentication. I would appreciate any pointers as to how I
>might go about this, or any pack
Roedy Green <[EMAIL PROTECTED]> wrote:
> On 12 Oct 2005 01:43:32 GMT, John Bokma <[EMAIL PROTECTED]> wrote
> or quoted :
>
>>> So let's say I decide to send an email to Donald Knuth.
>>
>>:-)
>
> I did write him, snail mail, and he r
Keith Thompson <[EMAIL PROTECTED]> wrote:
> There are several newsgroups that deal with e-mail abuse. This
> discussion isn't being posted to any of them. Please stop.
This just adds to the noise, and isn't going to work. Just kill the entire
thread.
--
John
here would be 5 computers (not counting game
> computers like the Comodores and Spectrums) by 2000 would likely have
> come true.
Yeah, sure, and we all would be living in caves.
--
John Small Perl scripts: http://johnbokma.com/perl/
Perl pro
in August 1981; SunOS 3.0 in February 1986.
Sun Microsystems was incorporated (with four employees) in February 1982.
There never was a SunOS 3.8. (SunOS 3.5 was succeeded by 4.0.) And I'm
not sure what you mean by "Sun 360"--a Sun 3/60, maybe?
--
John Wingate
much BS in one
sentence.
> Ironically exactly this
> is the key to Linux/*BSD success in the unix server market. ;)
Yeah, right.
--
John Small Perl scripts: http://johnbokma.com/perl/
Perl programmer available: h
just companies, not little gods like some want
them to be.
> then where we are now. Perhaps we even had a other mainstream
> architecture like sparcs and powerpc's.
But "crippled" like Intel.
--
John Small Perl scripts: http://johnbokma.com/perl/
Michael Heiming <[EMAIL PROTECTED]> wrote:
> In comp.os.linux.misc John Bokma <[EMAIL PROTECTED]>:
>> Michael Heiming <[EMAIL PROTECTED]> wrote:
>
>>> The only thing positive about M$ entering the market, probably
>>> due to their inef
ho don't agree.
--
John Small Perl scripts: http://johnbokma.com/perl/
Perl programmer available: http://castleamber.com/
I ploink googlegroups.com :-)
--
http://mail.python.org/mailman/listinfo/python-list
"Martin P. Hellwig" <[EMAIL PROTECTED]> wrote:
> John Bokma wrote:
>
>> You mean like the lamp that keeps burning forever, like Philips has?
>
> No more like all the hydrogen technologies that shell has in their
> possession for the last decades and only
o, Firefox gets money from
Google kickback. Maybe MS had a similar idea in mind, but it failed
(remember how they wanted to add ads to keywords in webpages?)
--
John Small Perl scripts: http://johnbokma.com/perl/
Perl programmer available: http://
st in making sure it's important
> to be running on one of their OSes.
Maybe *they* do have a point :-).
--
John Small Perl scripts: http://johnbokma.com/perl/
Perl programmer available: http://castleamber.com/
[EMAIL PROTECTED] wrote:
> John Bokma <[EMAIL PROTECTED]> writes:
>
>> "David Schwartz" <[EMAIL PROTECTED]> wrote:
>> >
>> > "Tim Roberts" <[EMAIL PROTECTED]> wrote in message
>> > news:[EMAIL PROTECTED]
>> >
"David Schwartz" <[EMAIL PROTECTED]> wrote:
>
> "John Bokma" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>
>> "David Schwartz" <[EMAIL PROTECTED]> wrote:
>
>>> "Tim Roberts" <[EMAIL PR
that your OS and browser
> will become the only means of accessing the internet. And if your OS
> and browser are the only way to access the Internet, who in their
> right mind would use another system?
It's not happening, so what are you talking about? Any developer hop
.
> How about pdf?
Ah, and that's exploit free?
>>Program listings are much more readable on my website.
> IMO FOSS pdf could provide all the layout benefits while
> avoiding (allowing for bugs) all the downsides of X/HTML in emails.
Amazing, so one data format that's o
[EMAIL PROTECTED] wrote:
> John Bokma <[EMAIL PROTECTED]> writes:
>
>> [EMAIL PROTECTED] wrote:
>>
>> > John Bokma <[EMAIL PROTECTED]> writes:
>> >
>> >> "David Schwartz" <[EMAIL PROTECTED]> wrote:
>> >
Francis Girard:
Here is the code you are looking for if I read you right:
# Michael Dawson -
1/8/03
import
random
print "\tWelcome to 'Guess My Number'!"print "\nI'm thinking of a number
between
Peter T. Breuer <[EMAIL PROTECTED]> wrote:
> In comp.os.linux.misc John Wingate <[EMAIL PROTECTED]> wrote:
>> Peter T. Breuer <[EMAIL PROTECTED]> wrote:
>>> In comp.os.linux.misc Jeroen Wenting
>>> wrote:
>>>> Without Microsoft 90% of us
;
>>Then you should ask people to print it out, and use snail mail.
>>Exploits in email programs are not happening since HTML was added to
>>them.
>
> Yes, they are.
No, they are not. Buffer overruns with plain ASCII text have happened in
the past. Dangerous attachem
"Mike Schilling" <[EMAIL PROTECTED]> wrote:
>
> "John Bokma" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>
>> Which standards? W3C doesn't make standards (they talk about working
>> drafts and recommendations), so
Steven D'Aprano <[EMAIL PROTECTED]> wrote:
> On Sun, 16 Oct 2005 00:47:09 +, John Bokma wrote:
>
>> Ok, let me spell it out for you: If all your applications are web
>> based, and the OS shouldn't matter, why do Linux distributions
>> matter? It does
"Matt Garrish" <[EMAIL PROTECTED]> wrote:
>
> "John Bokma" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>> "Matt Garrish" <[EMAIL PROTECTED]> wrote:
>>
>>> Eventually the hope is that your OS and br
Tor Iver Wilhelmsen <[EMAIL PROTECTED]> wrote:
> John Bokma <[EMAIL PROTECTED]> writes:
>
>> No, it's a recommendation, an advise, nothing else.
>
> It is a de facto standard instead of a de jure standard.
Yup, a recommendation.
--
John
"David Schwartz" <[EMAIL PROTECTED]> wrote:
>
> "John Bokma" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>
>> Ok, let me spell it out for you: If all your applications are web
>> based, and the OS shouldn't matter,
Steven D'Aprano <[EMAIL PROTECTED]> wrote:
> On Sun, 16 Oct 2005 05:26:51 +, John Bokma wrote:
>
>> Steven D'Aprano <[EMAIL PROTECTED]> wrote:
>>
>>> On Sun, 16 Oct 2005 00:47:09 +, John Bokma wrote:
>>>
>>>> Ok, le
Roel Schroeven <[EMAIL PROTECTED]> wrote:
> John Bokma wrote:
>> web based applications that work with any browser make OS irrelevant
>> -> not true, since for OpenOffice it doesn't matter which Linux
>> distribution one runs (or even if it's Linux), yet
[EMAIL PROTECTED] wrote:
>
> John Bokma wrote:
>
>> No: the historical fact is that MS whiped Netscape of the planet.
>
> By giving IE away for free, by ripping off spyglass, by _paying_ OEMs
> to not include Netscape. By bundling IE. By abusing standards.
Which stan
Steven D'Aprano <[EMAIL PROTECTED]> wrote:
> On Sun, 16 Oct 2005 14:57:19 +, John Bokma wrote:
>
>> As soon as products can't evolve
>> much more, the producers will find ways to make them even better
>> compared to last week.
>
> So once
Roel Schroeven <[EMAIL PROTECTED]> wrote:
> John Bokma wrote:
>> Roel Schroeven <[EMAIL PROTECTED]> wrote:
>>
>>>John Bokma wrote:
>>
>>>>web based applications that work with any browser make OS irrelevant
>>>>-> not true,
s it happen.
--
John Small Perl scripts: http://johnbokma.com/perl/
Perl programmer available: http://castleamber.com/
I ploink googlegroups.com :-)
--
http://mail.python.org/mailman/listinfo/python-list
"Mike Schilling" <[EMAIL PROTECTED]> wrote:
> "John Bokma" <[EMAIL PROTECTED]> wrote in message
>> No, it's a recommendation, an advise, nothing else. Otherwise they
>> would call it a standard. Why do you think W3C calls it
>> recommen
Roedy Green <[EMAIL PROTECTED]> wrote:
> On 15 Oct 2005 22:47:45 GMT, John Bokma <[EMAIL PROTECTED]> wrote
> or quoted :
>
>>Opera seems to be making money with it. Also, Firefox gets money from
>>Google kickback. Maybe MS had a similar idea in mind, but it fa
Roedy Green <[EMAIL PROTECTED]> wrote:
> On 16 Oct 2005 05:22:47 GMT, John Bokma <[EMAIL PROTECTED]> wrote
> or quoted :
>
>>No, it's a recommendation, an advise, nothing else. Otherwise they
>>would call it a standard. Why do you think W3C calls it
>>
"Mike Schilling" <[EMAIL PROTECTED]> wrote:
> "John Bokma" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>> Yup, but ISO C++ is a standard, and XML is a recommendation.
>
> And the practical difference between the two is
&
"David Schwartz" <[EMAIL PROTECTED]> wrote:
>
> "John Bokma" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>
>> "David Schwartz" <[EMAIL PROTECTED]> wrote:
>
>>> You don't get it. T
Roel Schroeven <[EMAIL PROTECTED]> wrote:
> John Bokma wrote:
>> Roel Schroeven <[EMAIL PROTECTED]> wrote:
>>>But that's not the point; the point is that they have the choice.
>>>If MS had it its way, they wouldn't have that choice.
>>
yet learnt
> about karma.
Which is a good thing, since MS is not a human being. It's a company, a
thing to make money, so it can make more money.
--
John Small Perl scripts: http://johnbokma.com/perl/
Perl programmer available: http://castlea
Roedy Green <[EMAIL PROTECTED]> wrote:
> On 16 Oct 2005 00:47:09 GMT, John Bokma <[EMAIL PROTECTED]> wrote
> or quoted :
>
>>Ok, let me spell it out for you: If all your applications are web based,
>>and the OS shouldn't matter, why do Linux distributio
[EMAIL PROTECTED] (Bengt Richter) wrote:
> On 16 Oct 2005 00:31:38 GMT, John Bokma <[EMAIL PROTECTED]> wrote:
>
>>[EMAIL PROTECTED] (Bengt Richter) wrote:
>>
>>> On Tue, 04 Oct 2005 17:14:45 GMT, Roedy Green
>>> <[EMAIL PROTECTED]> wrote:
>>
"Mike Schilling" <[EMAIL PROTECTED]> wrote:
>
> "John Bokma" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>> "Mike Schilling" <[EMAIL PROTECTED]> wrote:
>>
>>> "John Bokma" <[EMAIL PRO
Steven D'Aprano <[EMAIL PROTECTED]> wrote:
> On Mon, 17 Oct 2005 21:42:09 +, John Bokma wrote:
>
>>> When did Netscape executives perjure themselves in court?
>>>
>>> When did Netscape commit fraud? Astro-turfing? Patent infringement?
>&g
"Mike Schilling" <[EMAIL PROTECTED]> wrote:
>
> "John Bokma" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>> Roedy Green <[EMAIL PROTECTED]> wrote:
>>
>>> On 16 Oct 2005 05:22:47 GMT, John Bokma <[EMAIL
Roedy Green <[EMAIL PROTECTED]> wrote:
> On 17 Oct 2005 03:17:16 GMT, John Bokma <[EMAIL PROTECTED]> wrote
> or quoted :
>
>>Which standards? Again: w3c is not an official standards organization.
>
> What does it take in your book for a standards organisation to
"Mike Schilling" <[EMAIL PROTECTED]> wrote:
> "John Bokma" <[EMAIL PROTECTED]> wrote in message
[ w3c "standard" v.s. ISO ]
> You haven't said why you thinbk "standards" are more valuable than
> "recommendations". W
Roedy Green <[EMAIL PROTECTED]> wrote:
> On 18 Oct 2005 06:20:56 GMT, John Bokma <[EMAIL PROTECTED]> wrote
> or quoted :
>
>>
>>That an HTML standard (ISO/IEC 15445:2000) and an HTML recommendation by
>>w3c (4.01 for example) are two different things
Richard Steiner <[EMAIL PROTECTED]> wrote:
> Here in comp.os.linux.misc,
> John Wingate <[EMAIL PROTECTED]> spake unto us, saying:
>
>>Peter T. Breuer <[EMAIL PROTECTED]> wrote:
>
>>> It seems to me that I was using 3.x. Maybe it was 3.1? I seem to
Roedy Green <[EMAIL PROTECTED]> wrote:
> On 18 Oct 2005 06:57:47 GMT, John Bokma <[EMAIL PROTECTED]> wrote
> or quoted :
>
>>>>That an HTML standard (ISO/IEC 15445:2000) and an HTML
>>>>recommendation by w3c (4.01 for example) are two different t
Eike Preuss <[EMAIL PROTECTED]> wrote:
> John Bokma wrote:
> [snip]
>>
>> I see little difference with other big companies. You're right that
>> there is no excuse for such behaviour, but if MS isn't doing it,
>> another company will take their plac
"Mike Schilling" <[EMAIL PROTECTED]> wrote:
>
> "John Bokma" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>> Roedy Green <[EMAIL PROTECTED]> wrote:
>>
>>> On 18 Oct 2005 06:57:47 GMT, John Bokma <[EMAIL PRO
and
others this doesn't matter, for others it does. Why do you think Microsoft
made part of .NET a standard? They could perfectly write up recommendations
on .NET themselves, written drafts, or RFCs and leave it at that.
--
John Small Perl scripts: http://johnbokma.com/perl
ly doing that harm is, or at least should be, although sadly
> when we allow the psychopaths to make the rules, they tend to make
> rules that allow themselves to prosper at our expense.
Hmmmm... and probably one in three is paranoid?
--
John Small Perl scripts: http://johnbokma.
Try:
userModule = _importModule( pathToModule )
def _importModule( moduleName ):
modName = __import__ ( moduleName )
modComponents = moduleName.split( '.' )
for indivComp in modComponents[ 1: ]:
modName = getattr( modName, indivComp )
return modName
HTH,
J
Joerg Schust
mp.unix.programmer,
comp.lang.java.programmer, and comp.os.linux.misc?
--
John Small Perl scripts: http://johnbokma.com/perl/
Perl programmer available: http://castleamber.com/
I ploink googlegroups.com :-)
--
http://mail.python.org/mailman/listinfo/python-list
Fredrik Lundh wrote:
>John Abel wrote:
>
>
>
>>def _importModule( moduleName ):
>>modName = __import__ ( moduleName )
>>modComponents = moduleName.split( '.' )
>>for indivComp in modComponents[ 1: ]:
>>modName =
dd 30 days.
I have seen where mxDateTimes are being used to do this, but I was
wondering if there is simple way of doing this with built in datetime
object?
Thanks in advance.
John
--
http://mail.python.org/mailman/listinfo/python-list
considered as troll, and the inter-language
> communication has been essentially completely cut off. Basically, the
> only ones generating all the garbage posts are these troll-criers
> themselves. (will have to flesh out on this particular point of
> net-sociology in a essay some oth
Hi,
I'm running Python 2.3.5/2.4.2 on OSX 10.4.2, and am trying to run CGI
scripts using the builtin Apache. For ease, I've symlinked my custom
modules into the /Library/Python/2.3/site-packages directory, and they
import OK via command line python. However, when I perform the import
from a
[EMAIL PROTECTED] wrote:
>John Abel wrote:
>
>
>>Hi,
>>
>>I'm running Python 2.3.5/2.4.2 on OSX 10.4.2, and am trying to run CGI
>>scripts using the builtin Apache. For ease, I've symlinked my custom
>>modules into the /Library/Python/2.3/
dcrespo wrote:
>Hi all,
>
>Anyone knows a simpler but stronger control access to XML-RPC functions
>than the one I comment here?
>
>My actual system works like this:
>
>I have a TCP Server and an XML-RPC Server. Both of them verify if the
>IP address is allowed.
>
>The TCP Server works for validat
Steven D'Aprano <[EMAIL PROTECTED]> wrote:
> That would be a good guess, except that Microsoft's predatory and illegal
> behaviour began long before OS/2 was even planned. It began in the mid
> 1970s, with MS DOS.
Nitpick: MS-DOS first appeared i
[EMAIL PROTECTED] wrote:
>Hello All,
>
>I have a problem with the program that should generate x number of txt
>files (x is the number of records in the file datafile.txt).
>
>Once I execute the program (see below) only one file (instead of x
>files) is created. The file created is based on the la
Hi all. I'm fairly new to programming and I thought I'd like to try
Python. I'm trying to decide between these two books:
Learning Python (O'Reilly)
Beginning Python: From Novice to Professional (APress)
and I was hoping you might have some suggestions. LP seems to be a good
intro, but the othe
Correction: LP covers 2.3. The other covers 2.4.
John Salerno wrote:
> Hi all. I'm fairly new to programming and I thought I'd like to try
> Python. I'm trying to decide between these two books:
>
> Learning Python (O'Reilly)
> Beginning Python: From Novic
Try this page:
http://docs.python.org/lib/module-xml.sax.saxutils.html
I've just tried the code, taking out the , and adding in the belo,
as the XML is not well formed, otherwise.
The code then works.
HTH
J
Gregory Piñero wrote:
> Should I try some sort of XML group instead? I'm still s
Thanks for the suggestions everyone. I should mention that I misspoke
when I said I'm new to programming. I've actually been learning C# for
the past few months, and I'm fairly familiar with a lot of programming
basics. I just wanted to make sure no one recommended an "Expert" level
book! :)
Have a look on:
http://xml.com/pub/a/98/10/guide0.html?page=4#WELLFORMED
Explains it better then I can.
J
Gregory Piñero wrote:
> What do you mean by well-formed? What is required to make XML well
> formed?
>
> -Greg
>
>
> On 10/26/05, *John Abel* <[EMAIL PROTECTED]
In <[EMAIL PROTECTED]> "David Schwartz" <[EMAIL PROTECTED]> writes:
> What is an "illegal monopoly"?
A monopoly that acts in certain ways, abusing its monopoly power. There's
nothing inherently illegal about having a monopoly; it only becomes ill
In <[EMAIL PROTECTED]> "David Schwartz" <[EMAIL PROTECTED]> writes:
> When you say "it only become illegal", you are just being vague. Nothing
> becomes illegal. The abuse is illegal, but it never was legal.
You're splitting hairs. B
Hello,
I have a gui application where I am trying to use the asyncore module
to gather data from other computers. I am able to connect, but I
am getting constant handle_write_event method calls into my
application. It is obviously slowing down the gui processing
significantly.
My understanding
first socket program as well.
Thanks,
JohnOn 10/31/05, Steve Holden <[EMAIL PROTECTED]> wrote:
John W wrote:> Hello,>> I have a gui application where I am trying to use the asyncore module to> gather data from other computers. I am able to connect, but I am getting> constant hand
elp, I would appreciate it.
Thanks,
John
--
http://mail.python.org/mailman/listinfo/python-list
=
class TestAppClient:
def __init__( self, server, socket ):
self.server = server
self.socket = socket
self.nomad = Connection( server, socket )
asyncore.loop(count=1)
The
guage, and what
the learning process for either language would be like as a result.
Thanks,
John
--
http://mail.python.org/mailman/listinfo/python-list
John Salerno wrote:
> code? I know Python for .NET is treated as a true language in the CLR,
> but I don't quite grasp what all this means for each language
isn't* treated, I meant to say!
--
http://mail.python.org/mailman/listinfo/python-list
Ok, like I mentioned before, I'm learning C# for fun. I'm interested in
learning Python sort of as a "supplement" (by that, I mean a language
with scripting capabilities that can do things maybe simpler than C#
might). One concern I have about learning them simultaneously is that
I'll start to
After my last post, I thought of another question as a result of the
following:
--
Mike Meyer wrote:
> John Salerno <[EMAIL PROTECTED]> writes:
> [Wants to learn C# and Python simultaneously.]
>
>>So my question is, is this feasible?
>
Thanks!
Mike Meyer wrote:
> John Salerno <[EMAIL PROTECTED]> writes:
> [Wants to learn C# and Python simultaneously.]
>
>>So my question is, is this feasible?
>
>
> Should be. It might be faster to do them sequentually.
>
>
>>Or does learning P
LOL. As weird as it sounds, that's what I *don't* want to happen with
C#! I've spent a lot of time with it, and I love it, but I don't want
Python to take over! :)
infidel wrote:
> Python has spoiled me. I used to periodically try out new languages
> just for fun, but since learning Python,
have a few questions...i'm a newbieso i'd appreciate any help
1- what is the difference between Python GUI and Python command line?
2-in Python command line when I hit enter after typing a command I cannot go back and "delete" "backspace" or otherwise edit a previous command...why?
3-I ha
Ok...I'm new to Python..and of course am already having troubles.
I have tried the following example from "how to think like a computer> scientist">> def newline():> print>> print "firstline"> newline()> print "secondline">> problem iswhenever I type -print "firstline"- and then hit enter
I am using the book "how to think like a computer scientist" and am finding the examples are not working with Python 2.4.2...I have typed them exactly as they appear in the textcan someone relate to this?...is this typical b/c 2.4.2 is a newer version?
-xray-
Yahoo! FareChase - Search mul
I am having trouble with the following example used in a tutorial:
print "Halt !"
s = raw_input ("Who Goes there? ")
print "You may pass,", s
I run this and get the following:
Halt!
Who Goes there?
--thats itif I hit enter again "You may pass,"
appears...
In the example after running y
Hey can somebody tell me what the "%" function does...I am not math illiterate...its just a new symbol for meis it a divisor? remainder something another??
thanks -xray-
Yahoo! FareChase - Search multiple travel sites in one click.
--
http://mail.python.org/mailman/listinfo/python-li
i had posted a previous question but I figured it out...thanks
Yahoo! FareChase - Search multiple travel sites in one click.
--
http://mail.python.org/mailman/listinfo/python-list
Hi all,
I have a need to create a Python script on the fly from another Python
program and then execute the script so created. Do I need to invoke
Python through os.spawnl or is there a better way?
Thanks,
--
John
--
http://mail.python.org/mailman/listinfo/python-list
I am running the following program from the example in "how to think like a computer scientist"
def countdown(n):
if n ==0:
print "Blastoff!"
else:
print n
countdown (n-1)
countdown (1000)
When I set "n"= 1000 the program runs in interpreter and stop
Can somebody tell me why you have to have "return result" in the below program as suggested in a beginner tutorial. I ran the second listed program below without "return result" and they both give the same value in Python interpreter. What does "return result" do?
def distance(x1, y1, x2, y2):
Question for the following program: sec 5.5
def factorial (n):
if n == 0:
return 1
else:
recurse = factorial (n-1)
result = n * recurse
return result
How come whenever I state the function with "n" given a value it prints no results in the interpreter for EX:
de
OK...I have the following program
i = 1
while i <= 6:
print 2 * i,' ',
i = i + 1
print
this is supposed to give you a "new" blank line after the program runs instead it just gives:
2 4 6 8 10 12
>>>
instead of:
2 4 6 8 10 12
>>>
to get the above return I have
ok...I am running the following program:
def printMultiples (n):
i = 1
while i <= 6:
print n*i, ' \t ',
i = i + 1
i = 1
while i <= 6:
printMultiples(i)
i = i + 1
this is supposed to return a simple multiplication table, but for some reason it does not want to s
I am running the following program:
def print Multiples (n, high):
i = 1
while i <= high:
print n*i, ' \t' ,
i = i + 1
print
def printMultTable (high):
i = 1
while i <= high:
print Multiples (i, high)
i = i + 1
printMultiples(8,8)
printMul
using the following program:
fruit = "banana"
index = 0
while index < len (fruit):
letter = fruit[index-1]
print letter
index= index -1
this program is supposed to spell "banana" backwards and in a vertical patern...it does thisbut after spelling "banana" it gives an error me
1001 - 1100 of 9356 matches
Mail list logo