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, 23.06.2019 10:00
Hey i just logged on and one of the moderators deleted a bunch of my answers to questions, even though the answers were right and the people it doesn't make sense but if anyone wants to talk about anything just message me lol (this is super random lol)
Answers: 1
question
Computers and Technology, 24.06.2019 03:40
4. does the kernel phenotype distribution support the idea that the cob is the result of a dihybrid cross? what information supports your answer? if a dihybrid cross (i.e. f1 to f2 of standard mendelian crosses) is not indicated what conditions might contribute to this finding.
Answers: 2
question
Computers and Technology, 24.06.2019 10:10
Which view in a presentation program displays a split window showing the slide in the upper half and a blank space in the lower half?
Answers: 1
question
Computers and Technology, 24.06.2019 16:00
Your is an example of personal information that you should keep private.
Answers: 2
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.07.2019 17:00