Wednesday, November 9, 2016

Blog 24

What is the difference between = and == in python?

16 comments:

  1. =means equal == means equal to
    Charlie Lin

    ReplyDelete
  2. = is for defining a variable.
    == is for checking the value of a variable to see if it equal to another value.
    -Katelyn

    ReplyDelete
  3. = this mean is equal, ==is equal to, equal also
    -Lux lei

    ReplyDelete
  4. = is equal and == is a double negative.

    ReplyDelete
  5. Chris VanYe
    = is "set to"
    == is "the same as"

    ReplyDelete
  6. = makes a variable equal to something like x=10 == is a condition when a variable equals one or more things
    -Sean

    ReplyDelete
  7. == is used for a Boolean to compare two values where = I used for
    x = x - 4

    ReplyDelete
  8. = means function of x
    == means that function equal something.
    -Gary Gao

    ReplyDelete
  9. = sets a variable
    == checks if a variable is the same as a quantity

    Josh Lee

    ReplyDelete
  10. = means that it does equal something
    == means to compare 2 things
    -Owen Luther

    ReplyDelete
  11. = sets something as another thing
    == makes to things equivalent
    _Ben

    ReplyDelete
  12. This = is the assignment operator
    This == is the equality operator
    The difference between them is that the assignment operator sets a value and the equality operator checks between two values to see if they're equal.

    - Abby Peterson

    ReplyDelete
  13. = defines a variable. == states a condition of one or more things.
    Alex Haston.

    ReplyDelete
  14. = is defining a variable, and == is used in conditional statements.
    ~Travis Vonheeder

    ReplyDelete
  15. The single equal sign is used to create a variable where as the double equal sign is used to compare two numbers.
    Joe Haj

    ReplyDelete