Free plan, chrome browser.
any idea whats wrong?
Context i’m trying to create a small program that you enter the a list of numbers and it gives you the mean median and range cause I need to know how to code math.
This isn’t JavaScript. You didn’t cast it to an int
rangeuse2 = int(rangeuse2) - int(rangeuse1)
Or just before printing the type
range_use_1 = int(numbers[0])
print(range_use_1)
range_use_2 = int(numbers[-1])
print(type(range_use_2))
print(type(range_use_1))
range_use_2 -= range_use_1
print("The range is", range_use_2)
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.