Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- scores = open("баллы.txt", "r", encoding='utf-8')
- res = []
- while True:
- # считываем строку
- line = scores.readline()
- # прерываем цикл, если строка пустая
- if not line:
- break
- # выводим строку
- res.append(line.strip())
- print(line.strip())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement