""" with open ("spolupracovnici.txt", mode="w", encoding="utf-8") as file: #file.write("") file.write("Kuba\nJirka\nKuba\nKuba\nAdam\nPetr\nAnežka\n") with open ("spolupracovnici.txt", mode="a", encoding="utf-8") as file: file.write("Marek\nMarkéta") pass """ with open ("spolupracovnici.txt", mode="r", encoding="utf-8") as file: # print(file.read()) for radek in file: print("Člen týmu je " + radek)