You can either use:
[x / 10.0 for x in range(5, 50, 15)]
or use lambda / map:
map(lambda x: x/10.0, range(5, 50, 15))
More Related Contents:
- How to convert a decimal number into fraction?
- What happens when start value < end value with range() cmd in Python?
- How to use a decimal range() step value?
- Why does range(start, end) not include end?
- Should you always favor xrange() over range()?
- Python 3 turn range to a list
- Easy way of finding decimal places
- OverflowError: (34, ‘Result too large’)
- Convert hex to float
- Convert Scientific Notation to Float
- Concatenating two range function results
- Rounding a number in Python but keeping ending zeros
- Python range() and zip() object type
- Convert a string to integer with decimal in Python
- How does the Python’s range function work?
- How to set the subplot axis range
- Union of multiple ranges
- Print a list in reverse order with range()?
- Range as dictionary key in Python
- drop trailing zeros from decimal
- Python IndexError: list index out of range
- Why do I get “OverflowError: (34, ‘Result too large’)” or “OverflowError: (34, ‘Numerical result out of range’)” from floating-point exponentiation?
- Decimal place issues with floats and decimal.Decimal
- Python: Mapping from intervals to values
- Convert decimal to binary in python [duplicate]
- Python convert decimal to hex
- Python to JSON Serialization fails on Decimal [duplicate]
- How to get largest possible precision? (Python – Decimal)
- How do I convert hex to decimal in Python? [duplicate]
- How can the built-in range function take a single argument or three?