It is simply not clear to me why there is an error here:
TypeError: \'float\' object cannot be interpreted as an integer dt = 0.0025 end = 2 dur =