I am very new to programming in general, and of course, it follows: to Python. Yet, I am in desperate need of a particular database program, and I am attempting to write it via objects, since I need to learn the ways of OOP anyway. I am currently trying to write a function that will take a user's input as variable 'type' and change the object's attribute of type 'type' to another user input...
type = str(raw_input("type: ")) entry = str(raw_input("entry: ")) self.type = entry
where type in self.type is changed to whatever was entered in the beginning.
I could use a bunch of if statements, but that would get long and unwieldy, and not really very reusable.