Hello I am having trouble getting my program to calculate the correct total if the speed limit is over 90mph. For example when i enter 100 for the clocked speed and 50 for the actual speed it returns 300 when I should receive 500. It also seems to be skipping over the else statement of if the person is not speeding they would be doing the legal speed limit. Any help would be greatly appreciated.
def main(): actual = input("Please enter the legal speed limit: ") clocked = input("Please enter the clocked speed limit: ") speedlimit = clocked - actual fine = 50 + 5*speedlimit total = 200 + fine amount = fine if speedlimit < 90: print "The total amount due is", amount elif speedlimit >= 90: print "The total amount due is", total else: print "The speed was legal." main() _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor