Computer Science, asked by bloomingalchemy, 1 year ago

Write the difference between = and ==​

Answers

Answered by fiercespartan
8

The symbol '=' is to set values and give names to the values.

first_word = 'Hello World!'

print(first_word)

'Hello World!'

But the operator '==' stands for equal to, this is for comparison between values.

5 == 6

False

6 == 6

True

'a' == 'b'

False

Similar questions