def temperature_def(tem): try: if tem >= 34 and tem <= 38: return tem else: print("You can not enter the list!")