I know that assigning some values to an array would be as below:
arrayX = [20080711, 20080712, 20080713, 20080714]
But I couldn’t find out how to quickly assign these values as a range to the array.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In Python 2.x:
in Python 3.x:
However, if your ints represent something like a date (YYYYMMDD), it will be trickier:
which works over months and years.