0

Syntex erroe

A = "good haroon " B = "boy haroon" print (A + B) C = input("goodness of haroon") print ("good haroon boy haroon" == "good haroon boy haroon") if A + B = "good haroon boy haroon": print ("hahah nice lie") I am getting syntex error at line 6 (if statement line and it is indicating at B)

24th May 2017, 4:31 PM
drmaik
drmaik - avatar
3 Respuestas
+ 1
use == = is assignment.
24th May 2017, 4:47 PM
Twelfty
Twelfty - avatar
+ 1
How about using == instead of just = ?
24th May 2017, 4:47 PM
Nazar Harasym
Nazar Harasym - avatar
0
Thank you. It worked But i have question. Isent the answer of bolean comparison is either True or Flase?
24th May 2017, 4:54 PM
drmaik
drmaik - avatar