Forum: Python Nov 4th, 2006 |
| Replies: 14 Views: 3,832 Another possible challenge, have it able to access a text file from the computer containing a bunch of possible words, so the user can add their own if they wish. |
Forum: Python Nov 3rd, 2006 |
| Replies: 6 Views: 1,574 I don't have much time, so I can only really post this much. Take a look at Mouche's scheduling program:
def add_address(self):
try:
self.address = schedule_data[0][3]
except... |
Forum: Python Nov 3rd, 2006 |
| Replies: 7 Views: 1,502 |
Forum: Python Nov 2nd, 2006 |
| Replies: 12 Views: 2,564 For and While loops serve different functions, you can actually make a For loop using a while loop (though I don't reccomend it.)
Here's a useful function for text-based games:
def... |
Forum: Python Oct 30th, 2006 |
| Replies: 6 Views: 4,440 I haven't done much GUI work to be honest, but I'm PRETTY sure tkinter has a canvas tool, and you could put that into your card class. Anybody else want to chime in on that? |
Forum: Python Oct 28th, 2006 |
| Replies: 2 Views: 846 Tuples are great for constants because you won't accidently change them, they're also faster and use less space then lists, iirc. |
Forum: Python Oct 28th, 2006 |
| Replies: 8 Views: 2,898 I'm not sure what you're trying to do, but this is how you can define an input statement inside of a function:
def question(q):
#Bassiccly, you are setting the variable 'response' to... |
Forum: Python Oct 28th, 2006 |
| Replies: 4 Views: 2,175 A traceback error is simply a diagnostitic tool to see where something went wrong in your program. It shows the last three or so lines executed before the error occured. It's important to realize... |
Forum: Python Oct 27th, 2006 |
| Replies: 8 Views: 1,349 What do you mean by
denaylogged()?
Is that a function you defined earlier? |
Forum: Python Oct 27th, 2006 |
| Replies: 3 Views: 2,666 |
Forum: Python Oct 26th, 2006 |
| Replies: 6 Views: 4,440 In this case, a module such as tkinter would be much more useful since it doesn't contain any animation. TKinter is probably your best bet, sicne you can create a simple GUI interface for the whole... |
Forum: Python Oct 26th, 2006 |
| Replies: 7 Views: 3,474 "rot" is just the parameters defined in the function, and what is happening is it's being added to the value of whatever character the iteration is on.
So therefore, let's say the word is "apple"... |