Top "Range" questions

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

Making a list of evenly spaced numbers in a certain range in python

What is a pythonic way of making list of arbitrary length containing evenly spaced numbers (not just whole integers) between …

list range python
How to produce a range with step n in bash? (generate a sequence of numbers with increments)

The way to iterate over a range in bash is for i in {0..10}; do echo $i; done What would be …

bash range iteration
How to create range in Swift?

In Objective-c we create range by using NSRange NSRange range; So how to create range in Swift?

swift range
How to generate a random number between a and b in Ruby?

To generate a random number between 3 and 10, for example, I use: rand(8) + 3 Is there a nicer way to do this (…

ruby random range
Range with step of type float

The documentation basically says that range must behave exactly as this implementation (for positive step): def range(start, stop, step): …

python range
How do I count cells that are between two numbers in Excel?

I need a formula to count the number of cells in a range that are between 10 and 10.000: I have: =COUNTIF(…

excel range formula
Excel Define a range based on a cell value

Is it possible to define a range based on a value given in a cell. So, for example: My selection …

excel range cell
How to find whether a number belongs to a particular range in Python?

Suppose I want to check if x belongs to range 0 to 0.5. How can I do it?

python range
Is it possible to implement a Python for range loop without an iterator variable?

Is it possible to do following without the i? for i in range(some_number): # do something If you just …

python loops for-loop range
Skip over a value in the range function in python

What is the pythonic way of looping through a range of numbers and skipping over one value? For example, the …

python loops for-loop range