0

What == means in Python

???

21st Apr 2020, 1:51 AM
Maximiliano
2 odpowiedzi
+ 2
== is checking if something is equal to something else = is for assigning a value if 3 == 3.0: print(True) True '3' = 5 if '3' == 5: print(True) True
21st Apr 2020, 1:59 AM
Slick
Slick - avatar
0
== is a boolean for checking whether something is equal to other or not. for eg. >>>print(2==2) true >>>print(2==3) false
21st Apr 2020, 9:39 AM
Varun Vaswani
Varun Vaswani - avatar