Accessing the numbers in a numberList in script

Suppose I have a numberList defined in the calculator, and I want to access the 7th entry of the list in script. Any way to do this? I could create a separate variable in the calculator for each item of the list, and then reference those variables in script, but I was hoping there was a cleaner way (my lists might get long, and I’ll want to access all entries individually).

Thanks!

number("A[7]") will pull up the 7th number in list A

Easy enough! Thanks!