Alle Dateien aus dem Pythonkurs
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
196 B

2 years ago
from namen import namen
f = open('namen.txt','w')
try:
for name in namen:
f.write(f'{name}\n')
except IOError as err:
print(f'I/O-Fehler {err}')
finally:
if f != None:
f.close()