Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >>> for word in magicwords:
- type(word) is str
- True
- True
- >>> for word in magicwords:
- if word in line:
- print "found"
- Traceback (most recent call last):
- File "<pyshell#30>", line 2, in <module>
- if word in line:
- TypeError: 'in <string>' requires string as left operand
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement