Bài tập File Operations - Cơ bản
Các bài tập về File Operations - Cơ bản
# Code của bạn ở đâydef read_file(filename):
# Code của bạn ở đây
pass
# Test
read_file("data.txt")def count_lines(filename):
# Code của bạn ở đây
pass
# Test
print(count_lines("data.txt"))def append_text(filename, text):
# Code của bạn ở đây
pass
# Test
append_text("log.txt", "New log entry")Last updated