+ 1
What is wrong with : if x = 0
I get invalid syntax
3 odpowiedzi
+ 5
If you meant to verify whether <x> was zero or not, usually a == is used, a = on the other hand is commonly used to assign something as value of a variable etc.
+ 4
In which language?? And code link!!
in py,
if x == 0 :
print("zero")
== comparison operator
= assignment operator
which one you are trying to use?
+ 1
Thank you