Search Results

Showing results 1 to 12 of 12
Search took 0.00 seconds.
Search: Posts Made By: Zonr_0 ; Forum: Python and child forums
Forum: Python Nov 4th, 2006
Replies: 14
Solved: Guess a word
Views: 3,832
Posted By Zonr_0
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
Posted By Zonr_0
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
Posted By Zonr_0
Forum: Python Nov 2nd, 2006
Replies: 12
Solved: Loops in Python
Views: 2,564
Posted By Zonr_0
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
Posted By Zonr_0
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
Posted By Zonr_0
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
Posted By Zonr_0
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
Posted By Zonr_0
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
Posted By Zonr_0
What do you mean by
denaylogged()?

Is that a function you defined earlier?
Forum: Python Oct 27th, 2006
Replies: 3
Views: 2,666
Posted By Zonr_0
Will this work?
Forum: Python Oct 26th, 2006
Replies: 6
Views: 4,440
Posted By Zonr_0
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
Posted By Zonr_0
"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"...
Showing results 1 to 12 of 12

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC