- 2

Why they put two "=" instead of one

Why they put two "=" instead of one?????????

22nd Jul 2020, 7:00 PM
Pau
3 odpowiedzi
+ 7
Pau , please use appropriate tags for programming language. Thanks!
22nd Jul 2020, 7:11 PM
Lothar
Lothar - avatar
+ 4
Pau I assume you are talking Python here😃😃 A single = is used to assign a value to some thing eg. width = 5 while == is used to confirm equality 5 == 6 Output: False
22nd Jul 2020, 7:07 PM
Tomiwa Joseph
Tomiwa Joseph - avatar
0
"=" is used for assigning a value. "==" is used for equality checking
23rd Jul 2020, 3:48 AM
Jay Gilbert Garzon
Jay Gilbert Garzon - avatar