There are certain principles that apply to optimization in any computer language, and Python is no exception.
Don't optimize as you go:
Write your program without regard to possible optimizations, concentrating instead on making sure that the code is clean, correct, and understandable. If it's too...