def navbarItems(activePage): pages = ["Students", "Assistants", "Experiments", "Appointments", "Groups", "Users", "Semesters"] items = [] for page in pages: active = "" lowerPage = page.lower().replace(" ", "_") if lowerPage == activePage: active = " active" items.append('' + page + '') return items def makeTable(headerAndDataList, rows): def cellString(cell): cell = str(cell) if cell == "[]": return "None" excludeChars = """<>"'[]""" for c in excludeChars: if c in cell: cell = cell.replace(c, "") return cell def td(cell): return "