Commit 752b02b6 authored by Arman Sobhi's avatar Arman Sobhi

Deleted unncessary files

parent 1935cba7
This diff is collapsed.
This diff is collapsed.
#!/usr/bin/env python3
"""
This program writes writes <bs/ba><major><year>req2.lp.
Pass in the degree major and year as command line arguments.
"""
import re
import sys
def main():
with open('listOfCourses.txt', 'r') as file:
courses = re.findall('[a-z]+[0-9][0-9V][0-9]{2}', file.read())
print(courses)
with open('htmlCourses.txt', 'w') as file:
for course in courses:
file.write('<option value="%s">\n' % course)
if __name__ == '__main__':
main()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment