[Tutor] Where can I find simple python scripts to edit and play around?

2007-09-26 Thread Ulrich Holtzhausen
Well I guess the subject/topic here describes it all. I am looking for a nice collection of SIMPLE python scripts, IE: How to manipulate files, text, how to create a bot, how to work with socks...making a server/client, converting decimal to binary etc. etc. etc. Example scripts since I am havi

[Tutor] IRC bot

2007-09-20 Thread Ulrich Holtzhausen
Thank you Kent. That worked for the output and I'm able to understand the IRC commands and syntaxes much better now. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] Income calculator

2007-09-20 Thread Ulrich Holtzhausen
Boykie Mackay wrote: > I have tried the code and it does give a syntax error.Another lesson for > me I guess.I should test code before posting,unless I'm sure of my post. > > The problem was with the brackets in lines 17/18.I got the code running > but I don't think the 'quit' function works as it

[Tutor] IRC bot

2007-09-20 Thread Ulrich Holtzhausen
Hey, Well I have the following: data_received = s.recv(1024) print data_received That only prints this when the bot connects: ''':irc.opera.com NOTICE AUTH :*** Looking up your hostname...''' Nothing else, so I am not sure whether it would actually save anything other than that if I chose to

Re: [Tutor] IRC bot

2007-09-20 Thread Ulrich Holtzhausen
शंतनु (Shantanoo) wrote: > Instead of writing your own code for the bot, I would suggest using > supybot (http://supybot.com/). > > regards, > shantanoo > Hey, thank you for the suggestion. I do know about supybot and phenny, both are python bots. I want to get experience in some IRC parameters

[Tutor] IRC bot

2007-09-20 Thread Ulrich Holtzhausen
I recently used the existing codebase of a very very simple IRC bot of which is in one of O'Reilly's books. I modified it a bit and added the NICK properties etc. and I was able to get it to join the server and my IRC channel. However I'd like to know how can I get it to print to screen what's

Re: [Tutor] Income calculator

2007-09-20 Thread Ulrich Holtzhausen
Alan Gauld wrote: > "Boykie Mackay" <[EMAIL PROTECTED]> wrote > > >> doesn't seem to be properly formatted.There should be a comma after >> the >> closing quotation marks,a closing bracket after the first variable >> and a >> % sign before the next i.e: >> >> >>> print "Your expected earn

[Tutor] Income calculator

2007-09-19 Thread Ulrich Holtzhausen
--- Begin Message --- Hi there, I started out with Python about two days ago, it's my very first shot at programming and I find it quite interesting. Anyway I'll get to the point: I made a simple script that works, albeit not the shortest way I think but it works, however I would like to ma

[Tutor] Income calculator

2007-09-19 Thread Ulrich Holtzhausen
Hi there, I started out with Python about two days ago, it's my very first shot at programming and I find it quite interesting. Anyway I'll get to the point: I made a simple script that works, albeit not the shortest way I think but it works, however I would like to make it a bit more "fancy" t

[Tutor] Income calculator

2007-09-19 Thread Ulrich Holtzhausen
Hi there, I started out with Python about two days ago, it's my very first shot at programming and I find it quite interesting. Anyway I'll get to the point: I made a simple script that works, albeit not the shortest way I think but it works, however I would like to make it a bit more "fancy" t