if num = 0.4: print("num")
8/3/2019 12:32:52 PM
Ateex Taseer6 Answers
New AnswerTo compare equality you use "==". "=" is a purely assignment operator and for simplicity sake, if you use assignment as a value you get errors.
The mistake is from the definition of your variable. Your number has decimal point, so you have to define it properly with the "double" Try: if (double num ==0.4); print(num)
if "num" == 0.4: print("num") I rewrite it as this๐๐ Still No output What should I do to get an output Concept?
Learn Playing. Play Learning
SoloLearn Inc.
4 Embarcadero Center, Suite 1455Send us a message