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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 00:20, mmmmaaarriiieeee
The open systems interconnection (osi) reference model: defines standards for many aspects of computing and communications within a network. is a generic description for how computers use multiple layers of protocol rules to communicate across a network. defines standards for wireless local area network (wlan) communication protocols. details the advantages and disadvantages of various basic network cabling options.
Answers: 1
image
Computers and Technology, 23.06.2019 00:30, Thisisdifinite
Which of the following would you find on a network
Answers: 3
image
Computers and Technology, 23.06.2019 11:30, kieante01
The most accurate readings that you can take on an analog vom are when the meter's pointer is at the a. center scale. b. extreme right. c. near right. d. extreme left.
Answers: 1
image
Computers and Technology, 23.06.2019 15:00, hunteryolanda82
Based on the current economic situation do you expect the employment demand for graduating engineers to increase or decrease? explain the basis for your answer. with a significant economic recovery, what do you think will happen to future enrollments in graduating engineering programs?
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 in other subjects:

Konu
Mathematics, 17.09.2020 04:01
Konu
Mathematics, 17.09.2020 04:01
Konu
Mathematics, 17.09.2020 05:01
Konu
Mathematics, 17.09.2020 05:01
Konu
Biology, 17.09.2020 05:01
Konu
Mathematics, 17.09.2020 05:01
Konu
History, 17.09.2020 05:01
Konu
Mathematics, 17.09.2020 05:01
Konu
Mathematics, 17.09.2020 05:01
Konu
Mathematics, 17.09.2020 05:01