February 19th, 2005, 02:54 PM
Best way to Organize Strings and Integers
Can anyone show me a good way to organize strongs and integers without having to use lists? Many times my code doesn't seem to work correctly because it hasn't been declared in the proper spot. For instance, i get those list index's out of range and referrenced before assignment errors. Is there a way where I can just have my code read all of this like VB6 or C++ would?
February 19th, 2005, 05:49 PM
Believe it or not, the best way to organize strings and integers is to use a list. You can use a custom sort function to rearrange the values in place after adding new values to the list. If your getting IndexErrors or any other errors then this usually means you should rethink your code; rather than try to find a way around using one of Pythons main data types .
I would suggest you do that.
February 19th, 2005, 06:56 PM
Well, I just figured out my major problem. I was doing flags = ['True'] instead of flags = 'True' (just an example). That's why nothing was working, 8>. Thanks anyway.