import csv

print("Enter the name of the file along with its extension:")
filename = input()

with open(filename, 'r', newline='') as file:
    reader = csv.reader(file)
    for row in reader:
        print(row[::-1])

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: