with open(
    'C:\\Users\\indrasen\\PycharmProjects\\PythonProgramExamples\\Geeksforgeeks\\test'
    , 'r') as reader:
    content = reader.readlines()
    print(reversed(content))
    with open(
        'C:\\Users\\indrasen\\PycharmProjects\\PythonProgramExamples\\Geeksforgeeks\\test'
        , 'w') as writer:
        for line in reversed(content):
            writer.write(line)

f3c91ad5c52bc65fb628870770f956ce6d4c6b90
<mask token>

with open(
    'C:\\Users\\indrasen\\PycharmProjects\\PythonProgramExamples\\Geeksforgeeks\\test'
    , 'r') as reader:
    content = reader.readlines()
    print(reversed(content))
    with open(
        'C:\\Users\\indrasen\\PycharmProjects\\PythonProgramExamples\\Geeksforgeeks\\test'
        , 'w') as writer:
        for line in reversed(content):
            writer.write(line)
