Write a python function that prints the Contents of a File in Reverse Order


Topic: Write a python function that prints the Contents of a File in Reverse Order

Solution

def reverse_content(filename):
    for line in reversed(list(open(filename))):
        print(line.rstrip())



List all Python Programs