Hello everyone, Wonder if someone can help me understand why these two codes do not give the same results for what looks essentially the same ("?") code. The argument passed is 7.
def rental_car_cost(days): payment = days * 40 if days >= 7: return payment - 50 elif days >= 3 < 7: return payment - 20 else: return payment and... def rental_car_cost(days): payment = days * 40 if days >= 3 < 7: return payment - 20 elif days >= 7: return payment - 50 else: return payment
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor