Skip to content
Permalink
0643195ec9
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
19 lines (10 sloc) 397 Bytes
import markdown
#Insert your student ID here
student_id="0123456789"
md = markdown.Markdown(extensions=['fenced_code'])
input_filename = 'coursework.md'
output_filename = f'5062CEM_2021_22_SepJan_CW1_main_sit_{student_id}.html'
with open(input_filename, 'r') as f:
html_text = md.convert(f.read())#, output_format='html4')
with open(output_filename, "w") as f:
f.write(html_text)