Code Point
September 10, 2010, 06:00:59 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Geshi Sintax Hilighting Mod Installed. Tens of languages available.
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: newbie in python  (Read 2499 times)
guitarlover29
Jr. Member
*

Karma: 0
Offline Offline

Posts: 1


« on: March 03, 2007, 04:42:10 PM »

Sir,
     Good day, i read your example in programming crash course,,, here's the link http://programming-crash-course.com/filter

     Sir, can i know what the content in this line in your program
     
    "cars_file = open('2006_FE_Guide_14-Nov-2005_download.csv', 'r')""
 
     cause when i practice this there an error when i run my program maybe the content of cars_file = open('2006_FE_Guide_14-Nov-2005_download.csv', 'r')" is lack in my program so that why there an error, so sir i can i know the content of this ?. . .
Logged
Alter Lobo
Global Moderator
Jr. Member
*****

Karma: 10
Offline Offline

Posts: 65


« Reply #1 on: March 05, 2007, 12:38:08 PM »

You should download the file 06data.zip referred in this page:

http://programming-crash-course.com/read_from_file

Extract that file in the same directory where you are running your python program or alternatively write the complete path along with the file name in that program line.

Code
cars_file = open('/path/to/dir/2006_FE_Guide_14-Nov-2005_download.csv', 'r')
Logged
jsheedy
Jr. Member
*

Karma: 1
Offline Offline

Posts: 7



WWW
« Reply #2 on: March 05, 2007, 08:02:50 PM »

I just picked up a good book from amazon, it is not a bad read from the 10 or so chapters I just went through, "Beginning Python - From Novice to Professional" by Magnus Lie Hetland.  I guess I am just one that needs to have a book in front of me to get it.  Maybe that might help?

Logged

jsheedy
MarkCrowther
Jr. Member
*

Karma: 0
Offline Offline

Posts: 16


tippity tappety


« Reply #3 on: March 20, 2007, 07:31:12 PM »

Hiya Jsheedy,

Good recommendation, my copy should arrive this Thursday  Cheesy

Also, there's what appears to be the next in the series over at: http://www.diveintopython.org/
Seems a bit advanced for me but it's freely available so might be worth a read over.

Mark.
Logged

When I grow up I'm going to be an idiot
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!