#try to avoid input function a = int(input("Enter cost prize :")) b = int(input("Enter selling prize :")) if a > b: print("Loss") elif a < b: print("Profit") else: print("No profit / No loss")
Click the run button. Try to avoid input() function.