Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- films=["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"]
- position=0
- found="false"
- searchQuery=input("SEARCH FOR: ")
- for i in films:
- if films[position] == searchQuery:
- found="true"
- position=position+1
- if found=="true":
- print("Your search query was found in position:",position,"!")
- break
Add Comment
Please, Sign In to add comment