Assignment04.py
user_9560538
python
a year ago
711 B
15
Indexable
# CSCI 355 Web Technology #Summer 2024 #Assignment 4: Front-End Web Development #ACK - Class import OutputUtil as ou def read_file(filename): with open(filename) as file: lines = file.readlines() headers = lines[0].strip().split(",") data = [line.strip().split(",") for line in lines[1:]] return headers, data def main(): headers, data = read_file("Assignment04.csv") print(headers) print(data) title = "United States of America" types = ["S", "S","S","N"] alignments = ["L", "C", "L", "R"] ou.write_html_file("Assignment04.html", title, headers, types, alignments, data, True) if __name__ == '__main__': main()
Editor is loading...
Leave a Comment