Top "Range" questions

A range is an extent of values between its lower and upper bound.

(Python) List index out of range - iteration

for i in range(len(lst)): if lst[i][0]==1 or lst[i][1]==1: lst.remove(lst[i]) return lst This gives "…

python list indexing range out
php switch case statement to handle ranges

I'm parsing some text and calculating the weight based on some rules. All the characters have the same weight. This …

php range switch-statement
Sample http range request session

Is it possible to show me a sample http session with range requests. I mean what would be the request …

http session range sample
How to populate a table with a range of dates?

I need a MySQL table to hold ALL DATES between 2011-01-01 and 2011-12-31. I have created a table …

mysql sql date range populate
Revert a range of commits in git

How can I revert a range of commits in git? From looking at the gitrevisions documentation, I cannot see how …

git revert range
Identify groups of continuous numbers in a list

I'd like to identify groups of continuous numbers in a list, so that: myfunc([2, 3, 4, 5, 12, 13, 14, 15, 16, 17, 20]) Returns: [(2,5), (12,17), 20] And was wondering what the …

python list range continuous
How to check an IP address is within a range of two IPs in PHP?

I have an IP address and I'm given two other IP addresses which together creates an IP range. I want …

php ip range
How should I handle inclusive ranges in Python?

I am working in a domain in which ranges are conventionally described inclusively. I have human-readable descriptions such as from …

python range slice
Test if range exists in VBA

I have a dynamically defined named range in my excel ss that grabs data out of a table based on …

excel vba range offset
How to find range overlap in python?

What is the best way in Python to determine what values in two ranges overlap? For example: x = range(1,10) y = …

python range