Students
Tuition Fee
Start Date
Medium of studying
Duration
Details
Program Details
Degree
Courses
Major
Applied Mathematics | Mathematics
Area of study
Mathematics and Statistics
Course Language
English
About Program

Program Overview


Program Details

The provided program details are as follows:


  • Course ID: CREDITS: 0
  • HOURS PER WEEK: 2
  • TOTAL HOURS: 34

Program Description

Problem-solving on Multi-Variable Calculus and Linear Algebra


```def extract_program_details(markdown_content):
    # Check if the input is valid
    if markdown_content is None or "404 Error" in markdown_content:
        return "NA"

    # Extract program details
    lines = markdown_content.splitlines()
    program_details = []
    for line in lines:
        if line.startswith("###") or line.startswith("##"):
            program_details.append(line)
        elif line.strip() and not line.startswith("-") and not line.startswith("[") and not line.startswith("("):
            program_details.append(line)

    # Format the extracted text in markdown
    formatted_text = "## Program Details\n"
    for detail in program_details:
        if detail.startswith("###"):
            formatted_text += detail + "\n"
        elif detail.startswith("##"):
            formatted_text += detail + "\n"
        else:
            formatted_text += "- " + detail + "\n"

    return formatted_text

# Test the function
markdown_content = """
### Context:
Problem-solving on Multi-Variable Calculus and Linear Algebra COURSE ID:
CREDITS: 0 HOURS PER WEEK: 2 TOTAL HOURS: 34
"""

print(extract_program_details(markdown_content))
See More
How can I help you today?