Find the best answers to your questions at Westonci.ca, where experts and enthusiasts provide accurate, reliable information. Join our platform to get reliable answers to your questions from a knowledgeable community of experts. Connect with a community of professionals ready to provide precise solutions to your questions quickly and accurately.

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?

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