Check your code for string “not”. I think(not sure) it is giving wrong Output.
1 Like
You are not checking if string has only word “not”
Try
1
not
2 Likes
yes, it is showing wrong ans for “not” . Thanks for helping
Thanks a lot for helping