Not in a global but a class variable. That is you can reference it in your static method like so: Prime.primes.
yes, you would store it in a global variable. pretty sure the author of this Kata is not Python native...
See the first comment on this SO post: http://stackoverflow.com/questions/7396092/is-there-a-static-constructor-or-static-initializer-in-python
I think the consecutio is pretty straightforward here: once the sell_in days is less then zero, quality degrades twice as fast, meaning first you check if it goes below zero, and in case the quality degrades 2X, doesn't it?
once the sell_in days is less then zero, quality degrades twice as fast
Thanks for your post!
Please could you be clearer, I don't understand very well your problem:-(
Loading collection data...
Not in a global but a class variable. That is you can reference it in your static method like so: Prime.primes.
yes, you would store it in a global variable. pretty sure the author of this Kata is not Python native...
See the first comment on this SO post: http://stackoverflow.com/questions/7396092/is-there-a-static-constructor-or-static-initializer-in-python
I think the consecutio is pretty straightforward here:
once the sell_in days is less then zero, quality degrades twice as fast
, meaning first you check if it goes below zero, and in case the quality degrades 2X, doesn't it?Thanks for your post!
Please could you be clearer, I don't understand very well your problem:-(