Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old May 29th, 2006, 6:58 PM   #11
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
Quote:
Originally Posted by arranta
Thank you very much. I'll check it out in a moment. There is one concern I've got. What is enumerate function and how to check out if I have it?
The enumerate function is probably best expressed with an example. This is a normal for loop:
list = ["a", "b", "c"]
for letter in list:
    print letter
The output of this program is:
a
b
c
This is an enumerated for loop:
for index, letter in enumerate(list):
    print index, letter
And the output:
0 a
1 b
2 c
In essence, the enumerate function gives you access to the list index, as well as the value of the item, when using a for loop or list comprehension.
Arevos is offline   Reply With Quote
Old May 29th, 2006, 7:18 PM   #12
b1g4L
Programmer
 
Join Date: Dec 2005
Location: SC
Posts: 38
Rep Power: 0 b1g4L is on a distinguished road
Send a message via AIM to b1g4L
It's funny because if you had left these two words out of your original post:
Quote:
Originally Posted by arranta
I'm girl
Everyone would have probably replied with, "Its your homework, you do it."

...sory for being off-topic. I just found this humerous.
b1g4L is offline   Reply With Quote
Old May 29th, 2006, 7:58 PM   #13
uman
Expert Programmer
 
Join Date: Dec 2004
Posts: 794
Rep Power: 4 uman is on a distinguished road
No we wouldn't have. We're perfectly willing to help, but not do things for people. If you had been here longer than 28 posts you'd know that.
__________________
Few people deserve to be compared to (Rush) Limbaugh, most of them were convicted at the Nuremburg trials.
--WilliamSChips on Slashdot
uman is offline   Reply With Quote
Old May 30th, 2006, 12:10 AM   #14
zem52887
Hobbyist Programmer
 
Join Date: May 2006
Posts: 127
Rep Power: 3 zem52887 is on a distinguished road
indeed... view my thread.
zem52887 is offline   Reply With Quote
Old May 30th, 2006, 1:20 AM   #15
Dietrich
Professional Programmer
 
Dietrich's Avatar
 
Join Date: Feb 2005
Posts: 434
Rep Power: 4 Dietrich is on a distinguished road
Anybody can write "I'm girl". How would you know? In the Olympics they take blood samples!

Anyway, I don't mind helping anyone that shows a little effort!.
__________________
I looked it up on the Intergnats!
Dietrich is offline   Reply With Quote
Old May 30th, 2006, 7:06 AM   #16
arranta
Newbie
 
Join Date: May 2006
Posts: 5
Rep Power: 0 arranta is on a distinguished road
Hi,

Thank you all for help.

Dietrich, you're right. Since there is no script or program which checks out sex of the post author anybody can write "I'm a girl";

b1g4L, maybe it is funny but I figured out that programming professionals (mostly men) will help poor lil' girl

I don't know why the file isn't there. Posting it here is pointles. Try this one:

Output file
arranta is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 6:24 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC