Spacing

parent 4a73bfb4
......@@ -9,11 +9,11 @@ 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)
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