Search Results

Showing results 1 to 37 of 37
Search took 0.01 seconds.
Search: Posts Made By: kdoiron
Forum: Python May 22nd, 2008
Replies: 8
Views: 753
Posted By kdoiron
Here's a bit of code to get you started. You'll have to play with it to do things like validating input, etc.

init_amt = float(raw_input('Enter the initial amount, in $ '))
int_rate =...
Forum: Python May 22nd, 2008
Replies: 8
Views: 753
Posted By kdoiron
Check the amount of interest earned each month (amt * rate/12). If this is greater than what you're taking out of the account, then you'll never deplete the account, so there's no point in trying to...
Forum: Python May 22nd, 2008
Replies: 3
Views: 808
Posted By kdoiron
If your array is a list, just create a string for each array using "tab.join(array)", then write the string to a sequential file. Use Excel (or whatever the open-office equivalent is) and import it...
Forum: Python May 22nd, 2008
Replies: 5
Views: 689
Posted By kdoiron
I have to agree with EneUran - the size of the list is, or at least should be, irrelevant.

Athirar, can you post a code sample and your list?
Forum: Python May 20th, 2008
Replies: 1
Views: 374
Posted By kdoiron
Sounds like homework to me. Why not post what you've got and let us know where you're stuck, instead of asking us to do your homework for you.
Forum: Python May 20th, 2008
Replies: 4
Views: 2,504
Posted By kdoiron
Of course, you'll have to do it the other way too - to look through file2 to be sure everything there is also in file1.
Forum: Python May 14th, 2008
Replies: 4
Views: 576
Posted By kdoiron
First, please use code tags around your code - indentation is important in Python, and invisibl without the code tags.

Don't use input - use raw_input instead, and then use 'float' to convert your...
Forum: Python May 14th, 2008
Replies: 4
Views: 576
Posted By kdoiron
Well, that sounds easy enough. What have you got so far? Remember what it said at the top of the Python forum page? We'll help you out, not do your homework for you.
Forum: Python May 13th, 2008
Replies: 4
Views: 1,109
Posted By kdoiron
The command you want is 'break'. I'll leave it to you to look up the syntax. There are a couple of ways you can test for what you need. First, lists have a 'sort' method. Use that to tell what the...
Forum: Geeks' Lounge May 12th, 2008
Replies: 688
Views: 80,805
Posted By kdoiron
Don't know whether it's true or not. The story I heard is that it was developed because typists were so proficient using earlier formats, that they were jamming the machines - they could type faster...
Forum: Geeks' Lounge May 12th, 2008
Replies: 688
Views: 80,805
Posted By kdoiron
There was a 4th - Clara Hughes of Canada: Individual Road Race Cycling bronze and Individual Time Trial Cycling bronze (1996) and 5,000 m Speed Skating bronze (2002).

Christa Luding-Rothenburger...
Forum: Python May 12th, 2008
Replies: 8
Views: 808
Posted By kdoiron
Thanks, I knew it was something simple that I had seen before.

* SLAPS FOREHEAD *
Forum: Python May 12th, 2008
Replies: 8
Views: 808
Posted By kdoiron
I'm going to feel really stupid when I see the answer to my question, because I'm sure I've seen it before and I've just forgotten. Anyway, I was just fiddling with this example, and I can't remember...
Forum: Python May 12th, 2008
Replies: 3
Views: 2,667
Posted By kdoiron
How do you think it should be approached? What do you think needs to be done? Let's hear your ideas first - even in English rather than in Python, if that's easier. We can take it from there.
Forum: Geeks' Lounge May 11th, 2008
Replies: 31
Views: 4,137
Posted By kdoiron
Tried - gave fake name and addy info, skipped through about 20 of these "special offers" and the thing froze. I know I'm not stupid, at least not stupid enough to try twice.
Forum: Geeks' Lounge May 8th, 2008
Replies: 716
Views: 77,860
Posted By kdoiron
Because it gives them more options - a less powerful weapon would allow you to cause limited damage in a geographically limited area. A massive weapon would cause more widespread damage, which may...
Forum: Geeks' Lounge May 8th, 2008
Replies: 5
Views: 980
Posted By kdoiron
And what happens if a user happens to post copyrighted material (to which they own the copyright?)
Forum: DaniWeb Community Feedback May 8th, 2008
Replies: 15
Views: 2,790
Posted By kdoiron
Wait a second - people ask for homework help on a forum? What's next - paying to have the work done?

Seriously, though, that's a very good possibility. Back in my day, there was no internet to...
Forum: Posting Games May 7th, 2008
Replies: 410
Views: 45,071
Posted By kdoiron
Forum: Posting Games May 7th, 2008
Replies: 3,341
Views: 181,492
Posted By kdoiron
Forum: Posting Games May 7th, 2008
Replies: 4,588
Views: 186,296
Posted By kdoiron
Let's speed things up a bit ...

4581
4582
4583
4584
4585
4586
4587
4588
Forum: Posting Games May 7th, 2008
Replies: 176
Views: 13,310
Posted By kdoiron
163 = 10100011
= 1 + 2 + 32 + 128
Forum: Geeks' Lounge May 7th, 2008
Replies: 17
Views: 4,924
Posted By kdoiron
I've been told by a number of people I look like Robin Williams. Don't know whether they meant as Mork or as the Genie from Alladin, though!
Forum: Geeks' Lounge May 7th, 2008
Replies: 47
Views: 4,649
Posted By kdoiron
In terms of going there to gamble, remember - they don't call it "Lost Wages" for nothing!
Forum: Geeks' Lounge May 7th, 2008
Replies: 5
Views: 1,117
Posted By kdoiron
Forum: Python May 7th, 2008
Replies: 6
Views: 1,024
Posted By kdoiron
I can't see your data, so I can only guess at what it might contain. But I would think that to find the "most productive" director, you'd want to find the average for each director, and sort these...
Forum: IT Professionals' Lounge May 6th, 2008
Replies: 6
Views: 1,859
Posted By kdoiron
Depends what you're after. You can look at www.python-forum.org, if you can get there when it's up.
Forum: Python May 6th, 2008
Replies: 3
Views: 635
Posted By kdoiron
Well, the last problem was fixed within a day after I sent an email (not a PM) to one of the admins. I'll have to do the same tonight when I get home. I think it would look better if I complain about...
Forum: Python May 6th, 2008
Replies: 4
Views: 1,240
Posted By kdoiron
Create a new list called 'b'. Then pass through list 'a', and check each element against list 'b'. Use the 'append' method to add to list 'b' if you need to.

And for what it's worth, I probably...
Forum: Python May 6th, 2008
Replies: 3
Views: 1,137
Posted By kdoiron
If you use "import socket", you will import everything from the "socket" module whether you need it or not, but with "from socket import *", you can actually specify what you want to import....
Forum: Python May 6th, 2008
Replies: 3
Views: 635
Posted By kdoiron
I hope people don't mind seeing references to other forums here.

I'm a regular at www.python-forum.org (http://www.python-forum.org) but lately I've been having problems with the site. Last week,...
Forum: Python May 6th, 2008
Replies: 3
Views: 1,474
Posted By kdoiron
Before "for line in data", set a line counter to 0. Inside the loop, increment the counter. Only when it is > 1, print the line.
Forum: Python May 6th, 2008
Replies: 4
Views: 1,240
Posted By kdoiron
The easiest way would probably be to create a new list ('b', perhaps? You've defined 'b' in your function but never use it). Then copy each item from 'a' to 'b' unless it is 0 or already in 'b'.
Forum: Python May 2nd, 2008
Replies: 4
Views: 2,482
Posted By kdoiron
Use the string module - it has a built-in for lower-case letters. This is preferable to specifying the ASCII characters - what happens if you run on an EBCDIC system? You're better off seeing if...
Forum: Geeks' Lounge May 2nd, 2008
Replies: 25
Views: 3,213
Posted By kdoiron
That's the one.

And thanks, Sneekula - I actually found this board while looking for some Python code.
Forum: Geeks' Lounge May 2nd, 2008
Replies: 25
Views: 3,213
Posted By kdoiron
Actually the way I heard it was more like this - Why do married men die younger? They want to!

(And before anyone complains, yes, I am married, and no, I don't feel that way personally).
Forum: Geeks' Lounge May 2nd, 2008
Replies: 14
Views: 1,201
Posted By kdoiron
What about bad parking:

www.youparklikeanasshole.com
Showing results 1 to 37 of 37

 


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

©2003 - 2009 DaniWeb® LLC