Python - File Handling Fundamentals
You have a list
lines = ['First\n', 'Second\n', 'Third\n']. Which code snippet efficiently appends all lines to log.txt?