+ 2
What is wrong in this code
https://code.sololearn.com/cN8WBwICBgJQ/?ref=app What is wrong here
6 odpowiedzi
+ 3
add one more = on line 9 as you are comparing string to 'abcdef'
+ 4
Line 9: You have used = instead of ==, which only assigns again to `password` the value of "abcdef" and returns it. Because if requires a bool and the condition returns a string, it gives error.
+ 3
Ved Thaker please do not mark your own answer as best answer as this can be seen as a negative behavior...
Thanks and happy coding.
+ 2
Line 9:
if (password = "abcdef")
The thing you do here is assigning variable password to "abcdef", but you need to compare it. Use == instead of = here.
+ 2
BroFar k