Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a = open('dictionary.txt', 'r')
- b = a.read()
- Wort = input("Geben Sie etwas ein:")
- found = False
- i = 0
- for Zeile in b.split( "\n" ):
- if Zeile == Wort:
- print(i)
- i = i + 1
- else: print("Nicht in dictionary enthalten!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement