def calculate(height, wight): result = wight / height ^ 2 return result def user_input_check(height, wight): if height.isdigit() and wight.isdigit(): if height != 0 and wight != 0: return True