The Artima Developer Community
Sponsored Link

Python Answers Forum
Data Entry Using Python

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
bug not

Posts: 41
Nickname: bugmenot
Registered: Jul, 2004

Data Entry Using Python Posted: May 14, 2009 11:48 PM
Reply to this message Reply
Advertisement
Hey guys I need help with the following.

table named popularity. The fields in the table are as follows:

PersonNumber INTEGER
Category VARCHAR(25)
Value VARCHAR(60)

I need to write a Python function named data_entry that takes as its parameter a list of strings which represent categories from the category names listed above. For each category, a text file of the same name has been provided e.g. for the category named 'movies', the file will be named 'movies.txt'. The function is to work its way through the list, entering the data from each successive text file into the popularity table created above.

Text file strings are separated by a TAB eg:

1 I Robot
1 Neon Genesis Evangelion: The End of Evangelion

Topic: How to execute a long/Big http request using post method of Previous Topic   Next Topic Topic: Speed of Python

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use