Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- word=input("vilket ord söker du?: ")
- file=open("klasslista.txt", "r")
- file_contents = file.read()
- counter=0
- for i in file_contents:
- file_contents.find(word)
- if file_contents.find(word)==True:
- counter = 1 + counter
- print(counter)
- print(counter)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement