For some time now I’ve been working on the little problems on Rosalind. Adn I’ve been stuck on one quite easy one, for ages.
And I’ve just solved it. And the problem wasn’t to do with my code at all, it was to do with the differing versions of Python.
To solve this problem you use the inbuilt factorial function and the results from that differ under Python 2.7 and 3.
I am using 3 and obviously the people who are running Rosalind, are using 2.7.
So for instance, with this dataset:
Python 2.7 gives the answer: 124917299331128613009585280018022400000000 which is accepted.
And Python 3 gives the answer:124917299331128612574021702489190831226880 which looks to be more accurate to me, but is not accepted.
So I’m just posting this here in case others who are stuck on this one can find the answer here.