utfil = open("tall.txt", "w") for i in range(10): tall = str(i + 1) utfil.write(tall + "\n") utfil.close() fil = open("tall.txt", "r") for linje in fil: print(linje.strip()) fil.close()