When possible, don't reinvent the wheel. Numpy has everything you need:

#!/usr/bin/env python
import numpy as np

a=np.fromfile(open('file','r'),sep='\n')
# [ 0.     0.005  0.124  0.     0.004  0.     0.111  0.112]

# You can set arbitrary bin edges:
bins=[0,0.150]
hist,bin_edges=np.histogram(a,bins=bins)
# hist: [8]
# bin_edges: [ 0.    0.15]

#Or, if bin is an integer, you can set the number of bins:
bins=4
hist,bin_edges=np.histogram(a,bins=bins)
# hist: [5 0 0 3]
# bin_edges: [ 0.     0.031  0.062  0.093  0.124]


Howto bin series of float values into histogram in Python?
I'm going on my honeymoon to Thailand, Cambodia and Vietnam in June for 4 weeks.

I'll bring my Canon t3i + 15-55mm and a 55-250mm lens.

This will be my first travel like this and I definitely want to take some awesome pictures.

I don't have a Flash and I want to buy a Canon Speedlite 430EX when the time comes.

The question is... Is it Worth it to buy this flash for this kind of travel?
