Question: Quick question. I'm using python 3 on windows 10 pro and I'm tryimg to run a file. When I click on my file and python

Quick question. I'm using python 3 on windows 10 pro and I'm tryimg to run a file. When I click on my file and python opens up and I try to get the answer by clicking on enter, python closes. Am I suppost to click on something else to get the answer?

As you can see in the pictures this is my code and the first print shows on the python command, but I want the answer to show on the command (aka the black screen). What do I do?

 Quick question. I'm using python 3 on windows 10 pro and

I'm tryimg to run a file. When I click on my file

As you can see on the picture with the black background when I run the file, it prints "mngden av moms". Then I enter the number 1000 and according to the code when I click on the enter botton the answer should be 1250. But when I do click on enter the python command pannel closes. Am I not suppost to click on enter?

\#stta in vrdet utan moms och momssatsen prisUtanMoms=int(input("pris utan moms: ")) momsSats =25/100 \#Mngden av moms moms=prisUtanMoms *momsSats \#Priset utan moms adderat med mngden av moms prisMedMoms=moms +prisUtanMoms \#Printa ut mngden av mom och priset efter moms print("mngden av moms:", moms) print("pris efter moms:", prisMedMoms) C:IUsers\Shahd\OneDrivelDokument \ momsberkning.py - Notepad++ C:IWINDOWS\py.exe pris utan moms: 1000 mo Python file

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!