Advertisement
Guest User

Untitled

a guest
Jul 18th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. myList = ["I", "Made", "A", "List", "Yay"]
  2.  
  3. target = input("Please input a word: ")
  4.  
  5. for i in myList:
  6. if i == target:
  7. print(target + " is in the list")
  8. else:
  9. print(target + " is not in the list")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement