Coding a Q&A problem | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Coding a Q&A problem

https://code.sololearn.com/c0I8KpGL6j6S/?ref=app I need help fixing the response. It keeps coming up for a "False" answer.

9th Feb 2019, 2:08 AM
Ryesha Aimes-Thompson
Ryesha Aimes-Thompson - avatar
1 Answer
+ 8
The problem is in line 5. You are using Boolean true to compare with string variable. Instead of using just True, use "True".
9th Feb 2019, 2:21 AM
Arushi Singhania
Arushi Singhania - avatar