Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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?

image text in transcribed

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Develop skills for building positive relationships.

Answered: 1 week ago

Question

Describe techniques for resolving conflicts.

Answered: 1 week ago

Question

Give feedback effectively and receive it appropriately.

Answered: 1 week ago