range function doesn't work in jupyter notebook

Issue I use jupyter notebook in vscode. I execute the simple code in Jupyter notebook(.ipynb) a = list(range(10)) print(a) The code execution result is… ————————————————————————— TypeError Traceback (most recent call last) <ipython-input-27-b9f6d3d8e065> in <module> —-> 1 a = list(range(10)) 2

Continue reading

using variables for a closed range in swift slider

Issue i have the following slider which works as expected, however i want to replace the range 0…100 with min and max variables Slider(value: $vm.lengthSliderValue, in: 0…100, step: 5, onEditingChanged: { (_) in vm.materialSizeUpdate() }, minimumValueLabel: Text(vm.currentValues.wallmin), maximumValueLabel: Text(vm.currentValues.wallmax)) {

Continue reading

Negative x and y range

Issue My problem is that the generated_map is not utilizing full negative range for x and y def generate_map(x_range, y_range, locations): generated_map = [] for x in range(locations): generated_map.append([random.randint(x_range, y_range), random.randint(x_range, y_range)]) return generated_map generated_map = generate_map(-300,300,35) Solution So the

Continue reading