if not minimum<=actual_result and not maximum>=actual_result: How to check if actual result is not laying between minimum value and maximum value. how should I represent the above statement in python? Any suggestions?