I use notepad++ to write my python code, and when I put in this code for a basic calculator:
However, after the input calls are over, it auto-closes the console window, supposedly because it finishes the rest of the calculations extremely quickly, but how do I stop it from closing?`I use notepad++ to write my python code, and when I put in this code for a basic calculator:
num1 = input("Enter a number")
num2 = input("Enter another number")
result = float(num1) + float(num2)
print(result)
However, after the input calls are over, it auto-closes the console window, supposedly because it finishes the rest of the calculations extremely quickly, but how do I stop it from closing?