Add LF5 Aufgaben

This commit is contained in:
clerie 2022-03-17 09:47:01 +01:00
parent 6685e379a0
commit 6dcdf2dfa4
2 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,13 @@
from pathlib import Path
adressen = Path("adressen.txt").read_text()
telefon = {}
for l in adressen.split("\n"):
if l == "":
continue
zeile = l.replace(";",",").split(",")
telefon[zeile[0]] = zeile[3]
print(telefon)

8
S1/LF5/adressen.txt Normal file
View File

@ -0,0 +1,8 @@
Frank,Meyer,Radolfzell;07732/43452
Peter,Rabe,Konstanz;07531/70021
Ottmar,Huber,Rosenheim;08031/7877-0
Anna,Rabe,Radolfzell;07732/2343
Oskar,Lindner,Konstanz;07531/890
Anna,List,München;089/3434544
Franziska,Huber,Rosenheim;08031/787878
Sarah,Rabe,Konstanz;07531/343454