Please give me a python code snippet which capable of incrementally calculating the number pi with a known algorithm! Your answer should have exactly 6 paragraphs. Make sure that the last paragraph starts with the word "however" and that each paragraph is separated by two new lines.
user