[Tutor] Anagram creator

2008-12-27 Thread btkuhn
Hi everyone, I'm having trouble with an anagram generating program that I am writing in Python. My output is not what it should be and I think the reason has something to do with my helper functions creating a reference to a dictionary each time it is called rather than a new "clone" dictionar

[Tutor] Python Lib Files

2008-12-14 Thread btkuhn
Hello everyone, I discovered yesterday that the Python package has a number of built in example scripts in the /lib directory. Perhaps this is common knowledge but I did not know about it. I can't seem to find any kind of guide to the files, though. Is there a readme somewhere that someone can

[Tutor] Working with lists

2008-12-13 Thread btkuhn
Hi everyone, I seem to use this pattern alot when writing functions and I'm wondering if there is a more efficient method. It comes up whenever I want to work with more than one item in a list; for instance, say I want to add each consecutive number in alist and output the new list. Ideally,

[Tutor] List of lists help

2008-11-20 Thread btkuhn
Hello, I am completely baffled by this action and would appreciate any help. My problem is occurring within a class which is within a larger program; if I need to post the entire program let me know and I will. It's only about 250 lines so far. Anyways, I am using a list of lists to store dat

[Tutor] Intermediate/advanced concepts

2008-11-06 Thread btkuhn
Hi everyone, I've been teaching myself python for a few months and I'm becoming frustrated because I've kind of hit a wall in terms of learning new information. In an effort to continue to learn I've found some material on more intermediate/advanced topics like linked lists, nodes, trees, etc

[Tutor] Building RSS reader with Python

2008-11-05 Thread btkuhn
Hi everyone, I'm new to programming and am building a very basic rss reader for my first major project with python and GUI. As it is, I have it set up so that if I input an exact rss feed address (ex http://news.google.com/?output=rss) I can retrieve stories. Id like to make it so that I can

[Tutor] Tkinter troubles

2008-11-03 Thread btkuhn
Hi guys, I'm having trouble with weird activity with a Tkinter GUI I'm creating. I've stripped down the code somewhat to simplify the problem somewhat, and I've posted it below, with further explanation at the end of this message: from Tkinter import * import tkFileDialog,tkSimpleDialog WINDO

Re: [Tutor] Setting up server for CGI

2008-10-30 Thread btkuhn
I'm not sure what you mean, "What directory do you run from?". I have the file saved as C:\cgihome\cgi\cgitest.py and I try running it by typing the following in the URL field: http://localhost:8000/cgi/cgitest.py . I tried changing the folder name to cgi-bin and get the same error. It says, "N

[Tutor] Setting up server for CGI

2008-10-30 Thread btkuhn
Hi everyone, I am new to programming and have been programming with Python for about 2.5 months. After learning the basics of the language I am trying to teach myself CGI with Python. I've come across a few resources that teach CGI, but I am having much trouble setting up a server to view CGI sc

Re: [Tutor] Exhaustive Enumeration

2008-09-21 Thread btkuhn
I'm actually not enrolled in the course; MIT puts some of its course materials available online as a general resource. I am out of school and trying to teach myself python on my own. I'm very much a beginner, and since I'm not privy to the lectures or notes from this course I have to fill in th

[Tutor] Exhaustive Enumeration

2008-09-21 Thread btkuhn
This is from the MIT Opencourseware intro to computer science course, which I've been working my way through. I understand what needs to be done (I think), which is basically to test each possibility and return the list of states with the most electoral votes that can be paid for under the camp

[Tutor] Practice exercise sources

2008-09-14 Thread btkuhn
Hi guys, I'm new to programming and have been learning Python as suggested by a friend as a good language to start with. I bought the "Learning Python" book from O'Reilly and I'm about 2/3 of the way through, and I've also read through 2 intro tutorials on the web. At this point, I understand