subject

Trace the code below to find the two errors. One is a syntax error meaning the code will not run with it, the other is a runtime error, where the code will run but the output is incorrect.

subtotal = input("Enter total before tax:")

tax = .08 * subtotal

print("tax on" + subtotal + "is:" + str(tax))

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 20:30
If an appliance consumes 500 w of power and is left on for 5 hours, how much energy is used over this time period? a. 2.5 kwh b. 25 kwh c. 250 kwh d. 2500 kwh
Answers: 1
question
Computers and Technology, 24.06.2019 12:30
Nikki sent flyers in the mail to all houses within the city limits promoting her computer repair service what type of promotion is this and example of
Answers: 1
question
Computers and Technology, 24.06.2019 20:50
Which key function of a business involves finding, targeting, attracting, and connecting with the right customers?
Answers: 3
question
Computers and Technology, 25.06.2019 02:30
What does a trademark indicate about a product? a trademark is a sign, symbol, or short phrase that indicates the of a product or service. type the correct answer in the box
Answers: 1
You know the right answer?
Trace the code below to find the two errors. One is a syntax error meaning the code will not run w...
Questions
question
Mathematics, 10.04.2020 22:54
Questions on the website: 13722361