Feb-22-2017, 06:58 AM
Feb-22-2017, 06:05 PM
Are you asserting that it's violating PEMDAS and asking how, or asking if it is? Do you expect the outputs to be different? What exactly do you expect?
Feb-22-2017, 10:35 PM
Are you concerned that they are not returning fractional values? If so, that's because you're using Python 2.x, where division of integers returns an integer. Try replacing 500 with 500.0. That makes it a float, and the results of the other operators floats as well.