Top "Range" questions

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

How does String substring work in Swift

I've been updating some of my old code and answers with Swift 3 but when I got to Swift Strings and …

swift string range substring
What does the "map" method do in Ruby?

I'm new to programming. Can someone explain what .map would do in: params = (0...param_count).map

ruby map range enumeration
Why does range(start, end) not include end?

>>> range(1,11) gives you [1,2,3,4,5,6,7,8,9,10] Why not 1-11? Did they just decide to do it like that at random …

python range
HTML5 input type range show range value

I am making a website where I want to use range slider(I know it only supports webkit browsers). I …

html css range
Python 3 turn range to a list

I'm trying to make a list with numbers 1-1000 in it. Obviously this would be annoying to write/read, so …

python python-3.x list range
How to scale down a range of numbers with a known min and max value

So I am trying to figure out how to take a range of numbers and scale the values down to …

math range scaling max minimum
range() for floats

Is there a range() equivalent for floats in Python? >>> range(0.5,5,1.5) [0, 1, 2, 3, 4] >>> range(0.5,5,0.5) Traceback (most recent …

python range fractions decimal
Creating an Array from a Range in VBA

I'm having a seemingly basic problem but can't find any resources addressing it. Simply put, I just want to load …

arrays excel vba range
Why is "1000000000000000 in range(1000000000000001)" so fast in Python 3?

It is my understanding that the range() function, which is actually an object type in Python 3, generates its contents on …

python performance python-3.x range python-internals