![northpolea](/avatars/15679.jpg)
northpolea
02.03.2020 •
Computers and Technology
The program below is used to calcualte the sum of 3 numbers. There is an error in this program. Which line contains the error? num1=10 num2 =20 num3="30" sum = num1+num2+num3 print (num1) print (num2) print (num3) print (sum)
Solved
Show answers
More tips
- W Work and Career What is the Most In-Demand Profession in the Modern World?...
- A Auto and Moto How Can Parking Sensors Help Drivers?...
- H Health and Medicine What is the Normal Blood Sugar Level in a Healthy Person?...
- F Food and Cooking Red Caviar: How to Choose the Best?...
- C Computers and Internet Clearing Cache: How to Speed Up Your Browser...
- S Style and Beauty How are artificial nails removed?...
- S Style and Beauty Secrets of Tying a Pareo: 5 Ways...
- F Food and Cooking Everything You Need to Know About Pasta...
Answers on questions: Computers and Technology
- M Mathematics Find the value of p and the value of q...
- H History Which issue accounts for the development of political parties in the early U.S. republic? A. An argument about the peace treaty ending the war.B. A disagreement...
- S Social Studies Which statement best describes participation in government in North Carolina during the antebellum era? Eastern counties had greater government representation. Western...
- H History How did plants from the Columbian Exchange (cotton, tobacco, sugar) impact Europe?...
- H History 9. what is al qaeda? a country in the middle east a terrorist group that attacked the united states an islamic fundamentalist government an arabic television station...
Ответ:
The error is at line 3. The variable num3 has been assigned a string value with use of the quotes.
To fix the error, take away the quotes from the number 30, since the arithemetic operation cannot be carried out on the string in python program language.
Explanation:
Ответ: