subject

Read the following code used to calculate the weight of an item with two-pound packaging: weight = int(input("How much does the item weigh? "))
packaging = 2
totalWeight = weight + packaging

There is an error in the code. Which function should be used, and why? (5 points)

float(); weight requires decimals
int(); weight uses positive and negative number values
print(); weight is printed on the scale
str(); weight is fixed, so no calculation is necessary

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 03:30
Identify at least three types of characteristics that you were asked about as you the computer identify a fruit.
Answers: 3
question
Computers and Technology, 22.06.2019 23:30
In my email i got a message it says a quick message and in message details on who its from its says nicole and under nicole is [email protected] -
Answers: 1
question
Computers and Technology, 23.06.2019 14:30
Which of the following would not be considered a pc? a. mainframe b. desktop c. tablet pc d. laptop
Answers: 2
question
Computers and Technology, 23.06.2019 19:00
Choose the correct citation for the case which established the "minimum contacts" test for a court's jurisdiction in a case. select one: a. brown v. board of education of topeka, 347 u.s. 483 (1954). b. international shoe co. v. washington, 326 u.s. 310 (1945) c. haynes v. gore, 531 u.s. 98 (2000). d. international shoe co. v. washington, 14 u.s. code 336.
Answers: 1
You know the right answer?
Read the following code used to calculate the weight of an item with two-pound packaging: weight =...
Questions
question
History, 10.11.2020 01:10
Questions on the website: 13722359