Advertisement
HellFinger

Untitled

Jul 28th, 2022
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. scores = open("баллы.txt", "r", encoding='utf-8')
  2. res = []
  3.  
  4. while True:
  5. # считываем строку
  6. line = scores.readline()
  7. # прерываем цикл, если строка пустая
  8. if not line:
  9. break
  10. # выводим строку
  11. res.append(line.strip())
  12. print(line.strip())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement