BadwaterBay / intelli-trip-planner

RESTful API that intelligently recommends road trip routes, built with Python Flask and MongoDB.
BSD 3-Clause "New" or "Revised" License
4 stars 5 forks source link

Simplify range(0, x) to range(x) in all Python files #192

Closed dongskyler closed 3 years ago

dongskyler commented 3 years ago

Background

In Python, range(0, x) is equivalent to range(x), with x being an integer.

Task

Replace all range(0, x) instances with range(x) in all files in this repo.

At least, the following file contains range(0, x):

Please check if any other file contains range(0, x) instances.

Please refer to contributing guidelines for environment setup and workflow.

Should you have any questions, please don't hesitate to comment under this issue.

Impact

Completing this issue will simplify our code.

wei200 commented 3 years ago

Claim to solve it.

dongskyler commented 3 years ago

Claim to solve it.

Bravo