Generation

generate functionMon, 06 Feb 2023

write a function to check whether a number is in a given range inclusive of high and low

def my_range(low, high): if low > high: return "Error - low must be less than high" else: return high - low

Questions about programming?Chat with your personal AI assistant