Skip to content

Commit

Permalink
meer woorden kan hij nu
Browse files Browse the repository at this point in the history
  • Loading branch information
PimLeerkes authored Oct 6, 2022
1 parent 839e142 commit e6b834e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,15 @@ def main():
for key, val in woord.items():
str_ned.add(key, val)
ned_str.add(val, key)

# voegt de woorden uit meerwoorden.txt ook toe aan de woordenboeken:
with open("meerwoorden.txt", "r") as data:
for woord in data:
woord = woord.split("=")
woord[1] = woord[1].replace("\n","")
woord[1] = woord[1].split(",")
str_ned.add(woord[1][0],woord[0])
ned_str.add(woord[0], woord[1][0])

# vraag om woorden te vertalen en print resultaat:
while(True):
Expand Down

0 comments on commit e6b834e

Please sign in to comment.