Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- myList = ["I", "Made", "A", "List", "Yay"]
- target = input("Please input a word: ")
- for i in myList:
- if i == target:
- print(target + " is in the list")
- else:
- print(target + " is not in the list")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement