InterviewSolution
Saved Bookmarks
| 1. |
What does “not in” do? |
|
Answer» “not in” is a membership operator. It evaluates to true if it does not finds a variable/string in the specified sequence. Otherwise it evaluates to false, (eg) S = “Hello World” if “Hell” not in S: print “False” will print False. |
|