Explore mathematical concepts using Python code