Python Create Integer Sequence Database