How we can compare strings using if statement..? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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
1 Resposta
+ 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