Def | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Def

What exactly is the double == Like X==0 I think I missed it, as it gets harder, I forget what I have learnt a couple of chapters ago

6th Mar 2018, 3:21 AM
Adaobi
3 Answers
+ 3
it's a comparison operator used for checking if both values are equal. here it checks if the value of x is 5 eg: x=5 if x==5: print("Yes") else print("No") output: yes
6th Mar 2018, 3:28 AM
‎ ‏‏‎Anonymous Guy
6th Mar 2018, 3:30 AM
‎ ‏‏‎Anonymous Guy
+ 1
ok, that is what I thought. Thank you
6th Mar 2018, 3:00 PM
Adaobi