guys what does if num ==7: means? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

guys what does if num ==7: means?

is it same as if num =7:

1st Jun 2020, 6:01 AM
Rahul
Rahul - avatar
3 Answers
+ 2
If you are using if, that means you are checking whether it is true or false. In this case to check, we use == whereas = is used where you want to assign a value to any variable like int x = 5;
1st Jun 2020, 6:10 AM
Hardik Sharma
Hardik Sharma - avatar
+ 1
You're welcome
1st Jun 2020, 6:13 AM
Hardik Sharma
Hardik Sharma - avatar
0
thank you soo much
1st Jun 2020, 6:11 AM
Rahul
Rahul - avatar