Open Source Development Tutorials | Newsletter Signup | About Us
Search  

Go Back   Open Source Tutorials Forum > Programming Languages > Python Programming
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-23-2008, 06:41 AM
exoticdisease exoticdisease is offline
Junior Member
 
Join Date: Feb 2008
Posts: 1 exoticdisease is on a distinguished road
Default Help needed with very simple program!

Hello all

I am stuck on making my first very simple python program and was wondering if anyone could offer help...in fact lots of it! I just really don't know what to do and it's getting very frustrating!

I need to write a program that displays the results of a relay race. There will be many teams entering the race, but I don't know how many, and the relay will have 3 legs.

The results come in a .csv file, which I will attach at the end of this post. The program needs to read the results file and print to the screen the total time and name of each team in the position they came. The .csv file is called cw1-results.txt and should be needs to be hard coded into the program. The time needs to be in the format hh:mm:ss, but it is in seconds in the .csv file.

TEAM,LEG,RUNNER,TIME
Team C,1,Runner 3,914
Team A,1,Runner 1,1049
Team A,2,Runner 4,1109
Team B,1,Runner 2,1132
Team B,3,Runner 8,1132
Team C,3,Runner 9,1154
Team A,3,Runner 7,1169
Team C,2,Runner 6,1714
Team B,2,Runner 5,1130

I can't even begin as I'm a complete n00b, so please offer some help! Any help would be GREATLY appreciated.

Thank you
exoticdisease
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

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



All times are GMT -5. The time now is 05:56 PM.


Powered by: vBulletin Version 3.0.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright 2004 - 2006 GrindingGears.com. All Rights Reserved.