Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
Post Closed as "Duplicate" by Ted Klein Bergman, Konrad Rudolph python
deleted 153 characters in body
Source Link
azro
  • 54.2k
  • 9
  • 39
  • 75

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?`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?

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?`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?

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?

Source Link

Why does the python window always close and how to stop it?

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?`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?