Top "Range" questions

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

How to use a decimal range() step value?

Is there a way to step between 0 and 1 by 0.1? I thought I could do it like the following, but it …

python floating-point range
Select data from date range between two dates

I have a table Named Product_Sales and it holds data like this Product_ID | Sold_by | Qty | From_date | …

sql date range
Python, Matplotlib, subplot: How to set the axis range?

How can I set the y axis range of the second subplot to e.g. [0,1000] ? The FFT plot of my …

python range axis matplotlib
VBA: Selecting range by variables

I want to select the formatted range of an Excel sheet. To define the last and first row I use …

vba variables range selection
How do I check if a string contains another string in Objective-C?

How can I check if a string (NSString) contains another smaller string? I was hoping for something like: NSString *string = @"…

ios objective-c string range substring
Print a list in reverse order with range()?

How can you produce the following list with range() in Python? [9, 8, 7, 6, 5, 4, 3, 2, 1, 0]

python range
NameError: global name 'xrange' is not defined in Python 3

I am getting an error when running a python program: Traceback (most recent call last): File "C:\Program Files (x86)\…

python python-3.x range runtimeexception xrange
What is the difference between range and xrange functions in Python 2.X?

Apparently xrange is faster but I have no idea why it's faster (and no proof besides the anecdotal so far …

python loops range python-2.x xrange
How to loop backwards in python?

I'm talking about doing something like: for(i=n; i>=1; --i) { //do something with i } I can think of …

python iteration range
Best way to extract a subvector from a vector?

Suppose I have a std::vector (let's call it myVec) of size N. What's the simplest way to construct a …

c++ stl vector range