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, 21.06.2019 22:30
Type the correct answer in the box. spell all words correctly.what kind of graph or chart does this image represent? the given image represents a (blank).
Answers: 2
question
Computers and Technology, 22.06.2019 19:00
If your accelerator suddenly gets stuck what should you do
Answers: 2
question
Computers and Technology, 22.06.2019 23:30
The next button in the review section shows the next available comment. next slide with no comment. previous comment. edited comment.
Answers: 1
question
Computers and Technology, 23.06.2019 09:00
Which best describes the role or restriction enzymes in the analysis of edna a. to break dna into fragments that vary in size so they can be sorted and analyzed b. to amplify small amounts of dna and generate large amounts of dna for analysis c. to purify samples of dna obtained from the environment so they can be analyzed d. to sort different sizes of dna fragments into a banding pattern that can be analyzed
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
Mathematics, 23.04.2020 23:04
question
Mathematics, 23.04.2020 23:04
question
Mathematics, 23.04.2020 23:04
question
Mathematics, 23.04.2020 23:04
Questions on the website: 13722367