Python codes

The first code here is an example of a python which computes the above integral using the brute force approach