0

How we can compare strings using if statement..?

I used the comparison operator(==) but didn't received an output.. https://code.sololearn.com/c8vC7QLfRT2i/?ref=app

3rd Aug 2019, 5:11 AM
anand jain
anand jain - avatar
2 Answers
+ 4
if "anand' ' . ^ You have used single quotation mark. If a string start swith double quotation, it should end with double quotation 😁
3rd Aug 2019, 5:19 AM
Ayan Fox
Ayan Fox - avatar