0

What's the difference...

What's the difference between == and = ?

20th Aug 2020, 11:06 PM
AR-code
AR-code - avatar
5 Respostas
+ 10
= is to declare a variable == is to test whether a variable, condition e.g. is valid or to compare with the another condition to test whether the values are equal and it will give the output which is True or False. https://www.sololearn.com/learn/JUMP_LINK__&&__Python__&&__JUMP_LINK/2276/ https://code.sololearn.com/c1U0a05Nw79I/?ref=app
20th Aug 2020, 11:11 PM
WenHao1223
WenHao1223 - avatar
+ 8
Yaya Slick you are right thx for correcting me 🤗😁
21st Aug 2020, 1:16 AM
WenHao1223
WenHao1223 - avatar
+ 4
== is a test to see if both values are equal. = is assigning a variable to a value
20th Aug 2020, 11:11 PM
Slick
Slick - avatar
+ 1
= it is used to assign value == it is to confirm that two sets of data are equal in all forms
21st Aug 2020, 1:10 AM
Oso Emmanuel
Oso Emmanuel - avatar
0
WenHao1223 Thats literally what both of us said. Look before you post :)
21st Aug 2020, 1:14 AM
Slick
Slick - avatar