Add LF5 Aufgaben
This commit is contained in:
parent
6685e379a0
commit
6dcdf2dfa4
13
S1/LF5/2022-03-14_Adressen.py
Normal file
13
S1/LF5/2022-03-14_Adressen.py
Normal 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
8
S1/LF5/adressen.txt
Normal 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
|
Loading…
Reference in New Issue
Block a user