ScripTips
Some people do not need to create complex software platforms. Everyone, at some point, needs to do some batch jobs or other repetetive task. These tutorials talk about doing simple tasks in Python.
Sign Up for Our Free Newsletters
Thanks, You're in!
Python Categories
9 Articles in: Programming Python - Simpler Python Programs - Algorithm Helps for Simple Scripts
How to Analyze a File All-At-Once Using a Dictionary
This tip gives advice on analyzing one or more files simultaneously using Python's dictionary data types. This type of analysis is useful for local analysis (as opposed to network server usage) when parts of one or more files need to be consulted simultaneously and in rapid succession.Searching Data Faster
One of the most powerful methods of searching data is the use of a binary search tree. By halving the number of steps to an answer at each step of the search, the time gained increases with the number of items to be searched. Put concretely, a list of 1000 items can be searched in 1/10 the time of a linear search by using data structured as a binary tree.
View More

