Write A Python Program To Implement Iterative Method