Advertisement
Guest User

Untitled

a guest
Nov 8th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. a = open('dictionary.txt', 'r')
  2. b = a.read()
  3. Wort = input("Geben Sie etwas ein:")
  4. found = False
  5.  
  6.  
  7. i = 0
  8.  
  9. for Zeile in b.split( "\n" ):
  10. if Zeile == Wort:
  11. print(i)
  12. i = i + 1
  13.  
  14.  
  15.  
  16. else: print("Nicht in dictionary enthalten!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement