SyntaxFix
Write A Post
Hire A Developer
Questions
Simple :
with open("test.txt") as f: data = f.readlines() tail = data[-2:] print(''.join(tail)