Feel free to use these scripts in your projects.
I have created two versions for each script to run on Python 2 and Python 3. The file names for Python 2 and Python 3 would have the suffixes _p2 and _p3 respectively. If the file runs on both Python 2 and Python 3, there will be no suffix _p2 and _p3.
-
Normal Hours and Overtime Salary Computation
compute_pay_overtime_gross_p2.py & compute_pay_overtime_gross_p3.py -
Seeking Smallest and Largest Number
find_smallest_largest_num_p2.py and find_smallest_largest_num_p3.py -
Total, Average and Count Computation from numbers in a text file with a mix of words and numbers
average_parse_p2.py and average_parse_p3.py -
Collate list of timings and counts, sort, and find most/least timings in an email log
_key_value_count_sort_p2.py key_value_count_sort_p3.py _ -
Seeking email that sent the most emails from email logs (text file)
most_common_email_p2.py most_common_email_p3.py
Ritchie Ng, from the sunny island Singapore