I'm new to programming and python, but I figured the best way to learn is by starting a project.
So I'm trying to create a program for personal use, I want it to manage input and output for a database.
Right now, I'm not worried about a GUI, I just want to create something that works, so as to set a foundation for improvement once I have the basics down. I know it might be a little ambitious but, in the words of Eric Raymond "Every good work of software starts by scratching a developer's personal itch."
So here is what it looks like so far
class Welcome: def Wmsg(): print('Welcome to the Inventory') print('Please enter the part name and description') class InventoryInfo: def partEntry(): invalid = 0 part = input('Enter Part Name') desc = input('Enter description') if len(part) == invalid: #check if value was entered print('please enter a valid description') elif len(desc) == invalid: print('please enter a valid description') else: print('Succesfully entered a new part to the inventory database') Welcome.Wmsg() InventoryInfo.partEntry()
Basically, its not doing much. But question is, what should I look into for this type of program. In other words, what modules should I look into. I know pickle is good way to store data persistently. For now im thinking it should basically store the input from the user onto a file. From there eventually I want to have it store input into a database, but I'm trying to crawl before I run. also, I would appreciate any suggestions or advice!
This post has been edited by Notion: 23 July 2013 - 01:55 PM