Re: [Tutor] Help with putting numbers from highest to lowest.

2017-09-27 Thread Derry, James R
In [2]: ?sorted Signature: sorted(iterable, /, *, key=None, reverse=False) Docstring: Return a new list containing all items from the iterable in ascending order. A custom key function can be supplied to customize the sort order, and the reverse flag can be set to request the result in descending

Re: [Tutor] Code for python game

2016-10-12 Thread Derry, James R
hi, tracey, are you allowed to use python sets? if so, you should take a look at them and their methods: https://docs.python.org/3.5/tutorial/datastructures.html?highlight=data%20structures#sets best, james From: Tutor [tutor-bounces+jderry=mail.utexas...

Re: [Tutor] i installed the package statsmodels but i get an error when i use it

2013-12-16 Thread Derry, James R
hi, eva, when i ran your code i found a misspell: result = statsmodels.tsa.statools.adfuller(x,1) when i fixed 'stattools' -- result = statsmodels.tsa.stattools.adfuller(x,1) print result (-2.6825663173365015, 0.077103947319183241, 0, 7, {'5%': -3.4775828571428571, '1%': -4.9386902332361515, '