IF YOU HELP ME I WILL GIVE YOU BRAINLIST AND 20 POINTS!!!!


To represent the cost of an item in a store, a float variable should be used.

False

True

Answers

Answer 1

Answer:

False

Explanation:

print 1

x = 2

print x

produces the output:

1

2

Again, the assignment statement produces no output.

2.5. Evaluating expressions

An expression is a combination of values, variables, and operators. If you type an expression on the command line, the interpreter evaluates it and displays the result:

>>> 1 + 1

2

The evaluation of an expression produces a value, which is why expressions can appear on the right hand side of assignment statements. A value all by itself is a simple expression, and so is a variable.

>>> 17

17

>>> x

2

Confusingly, evaluating an expression is not quite the same thing as printing a value.

>>> message = "What's up, Doc?"

>>> message

"What's up, Doc?"

>>> print message

What's up, Doc?

When the Python shell displays the value of an expression, it uses the same format you would use to enter a value. In the case of strings, that means that it includes the quotation marks. But the print statement prints the value of the expression, which in this case is the contents of the string.

In a script, an expression all by itself is a legal statement, but it doesn’t do anything. The script

17

3.2

"Hello, World!"

1 + 1

produces no output at all. How would you change the script to display the values of these four expressions?

2.6. Operators and operands

Operators are special symbols that represent computations like addition and multiplication. The values the operator uses are called operands.

The following are all legal Python expressions whose meaning is more or less clear:

20+32   hour-1   hour*60+minute   minute/60   5**2   (5+9)*(15-7)

The symbols +, -, and /, and the use of parenthesis for grouping, mean in Python what they mean in mathematics. The asterisk (*) is the symbol for multiplication, and ** is the symbol for exponentiation.

When a variable name appears in the place of an operand, it is replaced with its value before the operation is performed.

Addition, subtraction, multiplication, and exponentiation all do what you expect, but you might be surprised by division. The following operation has an unexpected result:

>>> minute = 59

>>> minute/60

0

Answer 2
The correct answer is true

Explanation: The guy above me.

Related Questions

PLZ HELP ME QUICK I'M TIMED
You want to learn more about how URL addresses are translated into IP addresses. Which of these webinars is most likely to meet your need?

What You Need to Know about MAC/IP


Everything You Ever Wanted to Know About DNS


How LANs Work


How Full Stacks Are Developed

Answers

Answer:

I think it would be how LANs work

I think how land work or how to use a Mac IP

Which statement will properly start the main() function?

a. def main():
b. def Main
c. def main#
d. is wrong so choose A, B or C

Answers

Answer:

A.

Explanation:

The answer is a. Because it begins the command
Other Questions
Aaron's friend drove him from Buffalo to Cleveland the distance is 187 miles and the trip took 2.75 hours how fast was Aaron's friend driving Which of the following describes a difference between the Constitution and the Articles of Confederation? A. The Constitution increased the power of the states. B. The Constitution made the amendment process more difficult. C. The Constitution gave the Federal Government power to collect taxes. D. The Constitution requires a unanimous vote of all 13 states to be amended. can you pls help 0.0198 x 75= whats the answer?? middle question Please help asap (25 pts)...Step 3:Identify the process that your amendment will have to follow to become part of the Constitution. Some information appears for you. Amendment Process: Two Main Steps 1:---------------------------------------(and) 2: RatificationMethod 1 :-----------------------( And) --------------------- Method 2: Two-thirds of state legislatures request a national convention. (And) -------------------------------Step 4:Why did the Founding Fathers create an amendment process for the Constitution?Why did they make the amendment process difficult to achieve?(step 3 = fill in the black)(step 4 = answer 2 questions) which answer is correct? Sonia has $40 in her lunch account and pays $2 each day to eat lunch -3= -2+m /6 Solve each equation cul es el factor de 81 Which group of organisms in an ecosystem does the niche of recycling organic matter back to the environment A particle (charge = 40 C) moves directly toward a second particle (charge = 80 C) which is held in a fixed position. At an instant when the distance between the two particles is 2.0 m, the kinetic energy of the moving particle is 16 J. Determine the distance separating the two particles when the moving particle is momentarily stopped. Middle school mathGraph the line y=3x+b if it is known that the graph goes through point: a A(2, 4) -2,-7,-12 ,.... is an arithmetic sequence Find the sum of its first 20 terms ? Explain any one method of crop production which ensures high yield? If a person accidentally touches a pan filled with hot water on the stove, they will immediately move their hand away from the hot pan before yelling out in pain. Why? Cereal (c) cost $4.12 a box. How many boxes did Jennifer buy if she spent $37.08? Do not include spaces in your answers. Equation: Solve: c = Solution Jennifer bought ( ) 3/4 subtracted from 1/3 The new number, 200, is 400 less than the original number. What is the approximate percent change?The percent change is approximately 0.6%.The percent change is approximately 1.5%.The percent change is approximately 66%.The percent change is approximately 150%. how much heat energy is required to melt 40g of sodium chloride at its melting point Who did Carnegie believe held the power in the US in 1889? Please help me!