Just say I have an integer in Python, ex: 100.
I'd like to convert this integer into a list counting up to this integer, ex: [1,2,3,... 100]
What is the most efficient way to do this?
(In case you're wondering why I want to do this, it's because the Django Paginate library I want to use needs a list -- if there's a more elegant way to use Paginate without doing this, please let me know).