Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. >>> for word in magicwords:
  2.     type(word) is str
  3.  
  4.    
  5. True
  6. True
  7. >>> for word in magicwords:
  8.     if word in line:
  9.         print "found"
  10.  
  11.        
  12.  
  13. Traceback (most recent call last):
  14.   File "<pyshell#30>", line 2, in <module>
  15.     if word in line:
  16. TypeError: 'in <string>' requires string as left operand
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement