Write a segment of code that declares List variable named constants of double values
containing the following mathematical constants (in the order listed here): 3.141, 1.414,
2.718.
For this problem we're expecting just a snippet of codeāso don't provide a method or class declaration.